本文整理汇总了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);
}
示例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;
}
}