public class JscriptWorkflowInstance
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
JscriptWorkflowInstance(java.lang.String id,
java.lang.String description,
java.util.Date startDate,
ServiceRegistry serviceRegistry,
org.mozilla.javascript.Scriptable scope)
Creates a new instance of
WorkflowInstance from
scratch |
JscriptWorkflowInstance(WorkflowInstance cmrWorkflowInstance,
ServiceRegistry serviceRegistry,
org.mozilla.javascript.Scriptable scope)
Create a new instance of
WorkflowInstance from a
WorkflowInstance object from the CMR workflow object model |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel workflow instance
|
void |
delete()
Deprecated.
as 'delete' is a JavaScript reserved word and so is unusable. Use
JscriptWorkflowInstance.remove() instead. |
java.lang.String |
getDescription()
Getter for
description property |
org.mozilla.javascript.Scriptable |
getEndDate()
Getter for
endDate property |
java.lang.String |
getId()
Getter for
id property |
org.mozilla.javascript.Scriptable |
getPaths()
Get all paths for the specified workflow instance
|
org.mozilla.javascript.Scriptable |
getStartDate()
Getter for
startDate property |
boolean |
isActive()
Get state for
active property |
void |
remove()
Deletes workflow instance.
|
public JscriptWorkflowInstance(java.lang.String id,
java.lang.String description,
java.util.Date startDate,
ServiceRegistry serviceRegistry,
org.mozilla.javascript.Scriptable scope)
WorkflowInstance from
scratchid - ID of new workflow instance objectdescription - Description of new workflow instance objectstartDate - Start Date of new workflow instance objectserviceRegistry - Service Registry instancescope - the root scripting scope for this objectpublic JscriptWorkflowInstance(WorkflowInstance cmrWorkflowInstance, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope)
WorkflowInstance from a
WorkflowInstance object from the CMR workflow object modelcmrWorkflowInstance - CMR workflow instanceserviceRegistry - Service Registry instancescope - the root scripting scope for this objectpublic org.mozilla.javascript.Scriptable getPaths()
public java.lang.String getId()
id propertypublic java.lang.String getDescription()
description propertypublic boolean isActive()
active propertypublic org.mozilla.javascript.Scriptable getStartDate()
startDate propertypublic org.mozilla.javascript.Scriptable getEndDate()
endDate propertypublic void cancel()
public void delete()
JscriptWorkflowInstance.remove() instead.public void remove()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.