|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.workflow.jscript.JscriptWorkflowInstance
public class JscriptWorkflowInstance
Class representing an active or in-flight workflow
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
void |
cancel()
Cancel workflow instance |
void |
delete()
Delete workflow instance |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JscriptWorkflowInstance(java.lang.String id, java.lang.String description, java.util.Date startDate, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope)
WorkflowInstance
from
scratch
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 objectpublic JscriptWorkflowInstance(WorkflowInstance cmrWorkflowInstance, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope)
WorkflowInstance
from a
WorkflowInstance object from the CMR workflow object model
cmrWorkflowInstance
- CMR workflow instanceserviceRegistry
- Service Registry instancescope
- the root scripting scope for this objectMethod Detail |
---|
public org.mozilla.javascript.Scriptable getPaths()
public java.lang.String getId()
id
property
public java.lang.String getDescription()
description
property
public boolean isActive()
active
property
public org.mozilla.javascript.Scriptable getStartDate()
startDate
property
public org.mozilla.javascript.Scriptable getEndDate()
endDate
property
public void cancel()
public void delete()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |