public class JscriptWorkflowDefinition extends Object implements Serializable
Constructor and Description |
---|
JscriptWorkflowDefinition(String id,
String name,
String version,
String title,
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 |
Modifier and Type | Method and Description |
---|---|
org.mozilla.javascript.Scriptable |
getActiveInstances()
Get active workflow instances of this workflow definition
|
String |
getDescription()
Get value of
description property |
String |
getId()
Get value of
id property |
String |
getName()
Get value of
name property |
String |
getTitle()
Get value of
title property |
protected ValueConverter |
getValueConverter()
Gets the value converter
|
String |
getVersion()
Get value of
version property |
JscriptWorkflowPath |
startWorkflow(Object properties)
Start workflow instance from workflow definition without
attaching any package node to the workflow
|
JscriptWorkflowPath |
startWorkflow(ScriptNode workflowPackage,
Object properties)
Start workflow instance from workflow definition
|
public JscriptWorkflowDefinition(WorkflowDefinition cmrWorkflowDefinition, ServiceRegistry serviceRegistry, org.mozilla.javascript.Scriptable scope)
WorkflowDefinition
from a
CMR workflow object model WorkflowDefinition instancecmrWorkflowDefinition
- an instance of WorkflowDefinition from the CMR workflow object modelserviceRegistry
- reference to the Service Registryscope
- the root scripting scope for this objectpublic JscriptWorkflowDefinition(String id, String name, String version, String title, 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 objectpublic String getId()
id
propertypublic String getName()
name
propertypublic String getVersion()
version
propertypublic String getTitle()
title
propertyprotected ValueConverter getValueConverter()
public String getDescription()
description
propertypublic JscriptWorkflowPath startWorkflow(Object properties)
properties
- Associative array of properties used to populate the
start task propertiespublic JscriptWorkflowPath startWorkflow(ScriptNode workflowPackage, Object properties)
workflowPackage
- workflow package node to 'attach' to the new workflow
instanceproperties
- Associative array of properties used to populate the
start task propertiespublic org.mozilla.javascript.Scriptable getActiveInstances()
Copyright © 2005–2017 Alfresco Software. All rights reserved.