Class JscriptWorkflowInstance
- java.lang.Object
-
- org.alfresco.repo.workflow.jscript.JscriptWorkflowInstance
-
- All Implemented Interfaces:
java.io.Serializable
public class JscriptWorkflowInstance extends java.lang.Object implements java.io.SerializableClass representing an active or in-flight workflow- Author:
- glenj
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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 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
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcancel()Cancel workflow instancevoiddelete()Deprecated.as 'delete' is a JavaScript reserved word and so is unusable.java.lang.StringgetDescription()Getter fordescriptionpropertyorg.mozilla.javascript.ScriptablegetEndDate()Getter forendDatepropertyjava.lang.StringgetId()Getter foridpropertyorg.mozilla.javascript.ScriptablegetPaths()Get all paths for the specified workflow instanceorg.mozilla.javascript.ScriptablegetStartDate()Getter forstartDatepropertybooleanisActive()Get state foractivepropertyvoidremove()Deletes workflow instance.
-
-
-
Constructor Detail
-
JscriptWorkflowInstance
public JscriptWorkflowInstance(java.lang.String id, java.lang.String description, java.util.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 Detail
-
getPaths
public org.mozilla.javascript.Scriptable getPaths()
Get all paths for the specified workflow instance
-
getId
public java.lang.String getId()
Getter foridproperty- Returns:
- the id
-
getDescription
public java.lang.String 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
-
-