Class JscriptWorkflowInstance
java.lang.Object
org.alfresco.repo.workflow.jscript.JscriptWorkflowInstance
- All Implemented Interfaces:
Serializable
Class representing an active or in-flight workflow
- Author:
- glenj
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJscriptWorkflowInstance(String id, String description, Date startDate, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope) Creates a new instance ofWorkflowInstancefrom scratchJscriptWorkflowInstance(WorkflowInstance cmrWorkflowInstance, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope) Create a new instance ofWorkflowInstancefrom a WorkflowInstance object from the CMR workflow object model -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancel workflow instancevoiddelete()Deprecated.as 'delete' is a JavaScript reserved word and so is unusable.Getter fordescriptionpropertyorg.mozilla.javascript.ScriptableGetter forendDatepropertygetId()Getter foridpropertyorg.mozilla.javascript.ScriptablegetPaths()Get all paths for the specified workflow instanceorg.mozilla.javascript.ScriptableGetter forstartDatepropertybooleanisActive()Get state foractivepropertyvoidremove()Deletes workflow instance.
-
Constructor Details
-
JscriptWorkflowInstance
public JscriptWorkflowInstance(String id, String description, Date startDate, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope) Creates a new instance ofWorkflowInstancefrom scratch- Parameters:
id- 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 object
-
JscriptWorkflowInstance
public JscriptWorkflowInstance(WorkflowInstance cmrWorkflowInstance, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope) Create a new instance ofWorkflowInstancefrom a WorkflowInstance object from the CMR workflow object model- Parameters:
cmrWorkflowInstance- CMR workflow instanceserviceRegistry- Service Registry instancescope- the root scripting scope for this object
-
-
Method Details
-
getPaths
public org.mozilla.javascript.Scriptable getPaths()Get all paths for the specified workflow instance -
getId
Getter foridproperty- Returns:
- the id
-
getDescription
Getter fordescriptionproperty- Returns:
- the description
-
isActive
public boolean isActive()Get state foractiveproperty- Returns:
- the active
-
getStartDate
public org.mozilla.javascript.Scriptable getStartDate()Getter forstartDateproperty- Returns:
- the startDate
-
getEndDate
public org.mozilla.javascript.Scriptable getEndDate()Getter forendDateproperty- Returns:
- the endDate
-
cancel
public void cancel()Cancel workflow instance -
delete
public void delete()Deprecated.as 'delete' is a JavaScript reserved word and so is unusable. Useremove()instead.Delete workflow instance -
remove
public void remove()Deletes workflow instance.- Since:
- 3.4.9
-