当前位置: 首页>>代码示例>>Java>>正文


Java Action.getExecutionStartDate方法代码示例

本文整理汇总了Java中org.alfresco.service.cmr.action.Action.getExecutionStartDate方法的典型用法代码示例。如果您正苦于以下问题:Java Action.getExecutionStartDate方法的具体用法?Java Action.getExecutionStartDate怎么用?Java Action.getExecutionStartDate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.alfresco.service.cmr.action.Action的用法示例。


在下文中一共展示了Action.getExecutionStartDate方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: buildExecutionDetails

import org.alfresco.service.cmr.action.Action; //导入方法依赖的package包/类
/**
 * Builds up the details to be stored in a cache for a specific action
 */
protected static ExecutionDetails buildExecutionDetails(Action action, NodeRef actionedUponNodeRef)
{
    // Where are we running?
    if (machineName == null)
    {
        try
        {
            InetAddress localhost = InetAddress.getLocalHost();
            machineName = localhost.getHostAddress() + " : " + localhost.getHostName();
        }
        catch (UnknownHostException e)
        {
            machineName = "(machine details unavailable - server IP not known)";
        }
    }

    // Generate
    return new ExecutionDetails(buildExecutionSummary(action), 
            action.getNodeRef(), actionedUponNodeRef,
            machineName, action.getExecutionStartDate(), false);
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:25,代码来源:ActionTrackingServiceImpl.java

示例2: ActionImpl

import org.alfresco.service.cmr.action.Action; //导入方法依赖的package包/类
public ActionImpl(Action action, String actionDefinitionName)
{
    super(action.getId(), action.getParameterValues());
    this.actionDefinitionName = actionDefinitionName;
    this.actionConditions = action.getActionConditions();
    this.compensatingAction = action.getCompensatingAction();
    this.createdDate = action.getCreatedDate();
    this.creator = action.getCreator();
    this.description = action.getDescription();
    this.trackStatus = action.getTrackStatus();
    this.executeAsynchronously = action.getExecuteAsychronously();
    this.modifiedDate = action.getModifiedDate();
    this.modifier = action.getModifier();
    this.nodeRef = action.getNodeRef();
    this.title = action.getTitle();
    this.executionStartDate = action.getExecutionStartDate();
    this.executionEndDate = action.getExecutionEndDate();
    this.executionStatus = action.getExecutionStatus();
    this.executionFailureMessage = action.getExecutionFailureMessage();
    if (action instanceof ActionImpl)
    {
        ActionImpl actionImpl = (ActionImpl) action;
        this.executionInstance = actionImpl.getExecutionInstance();
        this.runAsUserName = actionImpl.getRunAsUser();
        this.tenantId = actionImpl.getTenantId();
        this.actionChain = actionImpl.actionChain;
    }
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:29,代码来源:ActionImpl.java


注:本文中的org.alfresco.service.cmr.action.Action.getExecutionStartDate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。