public class JscriptWorkflowInstance extends Object implements Serializable
Constructor and Description |
---|
JscriptWorkflowInstance(String id,
String description,
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
remove() instead. |
String |
getDescription()
Getter for
description property |
org.mozilla.javascript.Scriptable |
getEndDate()
Getter for
endDate property |
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(String id, String description, 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 String getId()
id
propertypublic 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()
remove()
instead.public void remove()
Copyright © 2005–2017 Alfresco Software. All rights reserved.