public class JscriptWorkflowDefinition
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
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 |
| Modifier and Type | Method and Description |
|---|---|
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
|
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(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 objectpublic java.lang.String getId()
id propertypublic java.lang.String getName()
name propertypublic java.lang.String getVersion()
version propertypublic java.lang.String getTitle()
title propertyprotected ValueConverter getValueConverter()
public java.lang.String getDescription()
description propertypublic JscriptWorkflowPath startWorkflow(java.lang.Object properties)
properties - Associative array of properties used to populate the
start task propertiespublic 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 propertiespublic org.mozilla.javascript.Scriptable getActiveInstances()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.