|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.workflow.jscript.JscriptWorkflowDefinition
public class JscriptWorkflowDefinition
Constructor Summary | |
---|---|
JscriptWorkflowDefinition(java.lang.String id,
java.lang.String name,
java.lang.String version,
java.lang.String title,
java.lang.String description,
ServiceRegistry serviceRegistry,
org.mozilla.javascript.Scriptable scope)
Creates a new instance of WorkflowDefinition from scratch |
|
JscriptWorkflowDefinition(WorkflowDefinition cmrWorkflowDefinition,
ServiceRegistry serviceRegistry,
org.mozilla.javascript.Scriptable scope)
Create a new instance of WorkflowDefinition from a
CMR workflow object model WorkflowDefinition instance |
Method Summary | |
---|---|
org.mozilla.javascript.Scriptable |
getActiveInstances()
Get active workflow instances of this workflow definition |
java.lang.String |
getDescription()
Get value of description property |
java.lang.String |
getId()
Get value of id property |
java.lang.String |
getName()
Get value of name property |
java.lang.String |
getTitle()
Get value of title property |
protected ValueConverter |
getValueConverter()
Gets the value converter |
java.lang.String |
getVersion()
Get value of version property |
JscriptWorkflowPath |
startWorkflow(java.lang.Object properties)
Start workflow instance from workflow definition without attaching any package node to the workflow |
JscriptWorkflowPath |
startWorkflow(ScriptNode workflowPackage,
java.lang.Object properties)
Start workflow instance from workflow definition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JscriptWorkflowDefinition(WorkflowDefinition cmrWorkflowDefinition, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope)
WorkflowDefinition
from a
CMR workflow object model WorkflowDefinition instance
cmrWorkflowDefinition
- an instance of WorkflowDefinition from the CMR workflow object modelserviceRegistry
- reference to the Service Registryscope
- the root scripting scope for this objectpublic JscriptWorkflowDefinition(java.lang.String id, java.lang.String name, java.lang.String version, java.lang.String title, java.lang.String description, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope)
id
- workflow definition IDname
- name of workflow definitionversion
- version of workflow definitiontitle
- title of workflow definitiondescription
- description of workflow definitionserviceRegistry
- reference to the Service Registryscope
- root scripting scope for this objectMethod Detail |
---|
public java.lang.String getId()
id
property
public java.lang.String getName()
name
property
public java.lang.String getVersion()
version
property
public java.lang.String getTitle()
title
property
protected ValueConverter getValueConverter()
public java.lang.String getDescription()
description
property
public JscriptWorkflowPath startWorkflow(java.lang.Object properties)
properties
- Associative array of properties used to populate the
start task properties
public JscriptWorkflowPath startWorkflow(ScriptNode workflowPackage, java.lang.Object properties)
workflowPackage
- workflow package node to 'attach' to the new workflow
instanceproperties
- Associative array of properties used to populate the
start task properties
public org.mozilla.javascript.Scriptable getActiveInstances()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |