public class JBPMEngine extends AlfrescoBpmEngine implements WorkflowEngine
| Modifier and Type | Field and Description |
|---|---|
protected AuthorityDAO |
authorityDAO |
protected String |
companyHomePath |
protected org.alfresco.service.cmr.repository.StoreRef |
companyHomeStore |
static String |
ENGINE_ID |
protected static String |
ERR_END_TASK_INVALID_TRANSITION |
protected static String |
ERR_FIND_COMPLETED_TASK_INSTS |
protected static String |
ERR_INVALID_EVENT |
protected org.springmodules.workflow.jbpm31.JbpmTemplate |
jbpmTemplate |
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
protected PersonService |
personService |
protected ServiceRegistry |
serviceRegistry |
protected org.alfresco.service.cmr.search.SearchService |
unprotectedSearchService |
authorityManager, dictionaryService, factory, messageService, namespaceService, tenantService| Constructor and Description |
|---|
JBPMEngine() |
| Modifier and Type | Method and Description |
|---|---|
WorkflowInstance |
cancelWorkflow(String workflowId)
Cancel an "in-flight" Workflow instance
|
List<WorkflowInstance> |
cancelWorkflows(List<String> workflowIds)
Cancel a batch of "in-flight" Workflow instances
|
protected org.alfresco.repo.workflow.jbpm.JBPMEngine.CompiledProcessDefinition |
compileProcessDefinition(InputStream definitionStream,
String mimetype)
Construct a Process Definition from the provided Process Definition
stream
|
long |
countTasks(WorkflowTaskQuery query)
Count the number of active tasks that match the given query.
|
long |
countWorkflows(WorkflowInstanceQuery workflowInstanceQuery)
Get count of workflow instances
|
protected WorkflowDefinition |
createWorkflowDefinition(org.jbpm.graph.def.ProcessDefinition definition)
Creates a Workflow Definition
|
protected WorkflowDeployment |
createWorkflowDeployment(org.alfresco.repo.workflow.jbpm.JBPMEngine.CompiledProcessDefinition compiledDef)
Creates a Workflow Deployment
|
protected WorkflowInstance |
createWorkflowInstance(org.jbpm.graph.exe.ProcessInstance instance) |
protected WorkflowInstance |
createWorkflowInstance(org.jbpm.graph.exe.ProcessInstance instance,
WorkflowDefinition definition,
Date endDate,
Map<String,Object> variables)
Creates a Workflow Instance
|
protected WorkflowNode |
createWorkflowNode(org.jbpm.graph.def.Node node)
Creates a Workflow Node
|
protected WorkflowPath |
createWorkflowPath(org.jbpm.graph.exe.Token token)
Creates a Workflow Path
|
protected WorkflowPath |
createWorkflowPath(org.jbpm.graph.exe.Token token,
WorkflowInstance wfInstance,
WorkflowNode node)
Creates a Workflow Path
|
protected WorkflowTask |
createWorkflowTask(org.jbpm.taskmgmt.exe.TaskInstance task)
* Creates a Workflow Task
|
protected WorkflowTaskDefinition |
createWorkflowTaskDefinition(org.jbpm.taskmgmt.def.Task task)
Creates a Workflow Task Definition
|
protected WorkflowTimer |
createWorkflowTimer(org.jbpm.job.Timer timer)
Creates a Workflow Timer
|
protected WorkflowTransition |
createWorkflowTransition(org.jbpm.graph.def.Transition transition)
Create a Workflow Transition
|
WorkflowInstance |
deleteWorkflow(String workflowId)
Delete an "in-flight" Workflow instance
|
WorkflowDeployment |
deployDefinition(InputStream workflowDefinition,
String mimetype)
Deploy a Workflow Definition
|
WorkflowDeployment |
deployDefinition(InputStream workflowDefinition,
String mimetype,
String name)
Deploy a Workflow Definition
|
WorkflowTask |
endTask(String taskId,
String transition)
End the Task (i.e.
|
WorkflowPath |
fireEvent(String pathId,
String event)
Fire custom event against specified path
|
List<WorkflowInstance> |
getActiveWorkflows()
Gets all "in-flight" active workflow instances.
|
List<WorkflowInstance> |
getActiveWorkflows(String workflowDefinitionId)
Gets all "in-flight" active workflow instances of the specified Workflow Definition
|
List<WorkflowDefinition> |
getAllDefinitions()
Gets all deployed Workflow Definitions (with all previous versions)
|
List<WorkflowDefinition> |
getAllDefinitionsByName(String workflowName)
Gets all (including previous) Workflow Definitions for the given unique name
|
List<WorkflowTask> |
getAssignedTasks(String authority,
WorkflowTaskState state,
boolean lazyInitialization)
Gets all tasks assigned to the specified authority
|
List<WorkflowTask> |
getAssignedTasksInternal(String authority,
WorkflowTaskState state,
boolean sameSession) |
List<WorkflowInstance> |
getCompletedWorkflows()
Gets all completed workflow instances.
|
List<WorkflowInstance> |
getCompletedWorkflows(String workflowDefinitionId)
Gets all "in-flight" completed workflow instances of the specified Workflow Definition
|
protected org.alfresco.service.namespace.QName |
getDefaultStartTaskType() |
WorkflowDefinition |
getDefinitionById(String workflowDefinitionId)
Gets a Workflow Definition by unique Id
|
WorkflowDefinition |
getDefinitionByName(String workflowName)
Gets a Workflow Definition by unique name
|
byte[] |
getDefinitionImage(String workflowDefinitionId)
Gets a graphical view of the Workflow Definition
|
List<WorkflowDefinition> |
getDefinitions()
Gets all deployed Workflow Definitions
|
protected long |
getJbpmId(String id)
Get JBoss JBPM Id from Engine Global Id
|
protected org.alfresco.service.namespace.QName[] |
getMissingMandatoryTaskProperties(org.jbpm.taskmgmt.exe.TaskInstance instance)
Get missing mandatory properties on Task
|
Map<org.alfresco.service.namespace.QName,Serializable> |
getPathProperties(String pathId)
Gets the properties associated with the specified path (and parent paths)
|
List<WorkflowTask> |
getPooledTasks(List<String> authorities,
boolean lazyInitialization)
Gets the pooled tasks available to the specified authority
|
protected org.jbpm.graph.def.ProcessDefinition |
getProcessDefinition(org.jbpm.db.GraphSession graphSession,
String workflowDefinitionId)
Gets a jBPM process definition
|
protected org.jbpm.graph.exe.ProcessInstance |
getProcessInstance(org.jbpm.db.GraphSession graphSession,
String workflowId)
Gets a jBPM Process Instance
|
WorkflowTask |
getStartTask(String workflowInstanceId)
Gets all active timers for the specified workflow
|
List<WorkflowTask> |
getStartTasks(List<String> workflowInstanceIds,
boolean sameSession)
Gets all start tasks for the specified workflow
|
WorkflowTask |
getTaskById(String taskId)
Gets a Task by unique Id
|
List<WorkflowTaskDefinition> |
getTaskDefinitions(String workflowDefinitionId)
Gets the Task Definitions for the given Workflow Definition
|
protected org.jbpm.taskmgmt.exe.TaskInstance |
getTaskInstance(org.jbpm.db.TaskMgmtSession taskSession,
String taskId)
Gets a jBPM Task Instance
|
protected Map<org.alfresco.service.namespace.QName,Serializable> |
getTaskProperties(org.jbpm.taskmgmt.exe.TaskInstance instance,
boolean localProperties)
Gets Properties of Task
|
protected Map<org.alfresco.service.namespace.QName,Serializable> |
getTaskProperties(org.jbpm.taskmgmt.exe.TaskInstance instance,
boolean localProperties,
Map<Long,org.jbpm.context.exe.TokenVariableMap> variablesCache)
Gets Properties of Task
|
List<WorkflowTask> |
getTasksForWorkflowPath(String pathId)
Gets all Tasks associated with the specified path
|
List<WorkflowTask> |
getTasksForWorkflowPath(String pathId,
boolean sameSession) |
List<WorkflowTimer> |
getTimers(String workflowId)
Gets all active timers for the specified workflow
|
WorkflowInstance |
getWorkflowById(String workflowId)
Gets a specific workflow instances
|
InputStream |
getWorkflowImage(String workflowInstanceId)
Gets a graphical view of the workflow instance
|
List<WorkflowPath> |
getWorkflowPaths(String workflowId)
Gets all Paths for the specified Workflow instance
|
List<WorkflowInstance> |
getWorkflows()
Gets all workflow instances (both active and completed).
|
List<WorkflowInstance> |
getWorkflows(String workflowDefinitionId)
Gets all "in-flight" workflow instances (both active and completed) of the specified Workflow Definition
|
List<WorkflowInstance> |
getWorkflows(WorkflowInstanceQuery workflowInstanceQuery)
Gets all "in-flight" workflow instances according to the specified workflowInstanceQuery parameter
|
List<WorkflowInstance> |
getWorkflows(WorkflowInstanceQuery query,
int maxItems,
int skipCount)
Gets maxItems "in-flight" workflow instances according to the specified workflowInstanceQuery parameter
|
protected List<WorkflowTask> |
getWorkflowTasks(List<org.jbpm.taskmgmt.exe.TaskInstance> tasks) |
protected List<WorkflowTask> |
getWorkflowTasks(List<org.jbpm.taskmgmt.exe.TaskInstance> tasks,
boolean sameSession) |
protected List<WorkflowTask> |
getWorkflowTasks(org.hibernate.Session session,
List<Object[]> rows) |
protected WorkflowTaskState |
getWorkflowTaskState(org.jbpm.taskmgmt.exe.TaskInstance task)
Get the Workflow Task State for the specified JBoss JBPM Task
|
protected org.jbpm.graph.exe.Token |
getWorkflowToken(org.jbpm.db.GraphSession session,
String pathId)
Get the JBoss JBPM Token for the Workflow Path
|
boolean |
hasWorkflowImage(String workflowInstanceId)
Determines if a graphical view of the workflow instance exists
|
boolean |
isDefinitionDeployed(InputStream workflowDefinition,
String mimetype)
Is the specified Workflow Definition already deployed?
Note: the notion of "already deployed" may differ between bpm engines.
|
List<WorkflowTask> |
queryTasks(WorkflowTaskQuery query) |
List<WorkflowTask> |
queryTasks(WorkflowTaskQuery query,
boolean sameSession)
Query for tasks
|
void |
setAuthorityDAO(AuthorityDAO authorityDAO)
Sets the Authority DAO
|
void |
setCompanyHomePath(String companyHomePath)
Sets the Company Home Path
|
void |
setCompanyHomeStore(String companyHomeStore)
Sets the Company Home Store
|
void |
setDefaultStartTaskDescription(org.jbpm.taskmgmt.exe.TaskInstance instance)
Sets default description for the Task
|
protected void |
setDefaultTaskProperties(org.jbpm.taskmgmt.exe.TaskInstance instance)
Sets Default Properties of Task
|
protected void |
setDefaultWorkflowProperties(org.jbpm.taskmgmt.exe.TaskInstance startTask)
Initialise Workflow Instance properties
|
void |
setJBPMTemplate(org.springmodules.workflow.jbpm31.JbpmTemplate jbpmTemplate)
Sets the JBPM Template used for accessing JBoss JBPM in the correct
context
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Sets the Node Service
|
void |
setPersonService(PersonService personService)
Sets the Person Service
|
void |
setServiceRegistry(ServiceRegistry serviceRegistry)
Sets the Service Registry
|
protected void |
setTaskProperties(org.jbpm.taskmgmt.exe.TaskInstance instance,
Map<org.alfresco.service.namespace.QName,Serializable> properties)
Sets Properties of Task
|
void |
setUnprotectedSearchService(org.alfresco.service.cmr.search.SearchService unprotectedSearchService)
Set the unprotected search service - so we can find the node ref for
company home when folk do not have read access to company home TODO:
review use with DC
|
WorkflowPath |
signal(String pathId,
String transition)
Signal the transition from one Workflow Node to another within an "in-flight"
process.
|
WorkflowTask |
startTask(String taskId)
Start the specified Task
Note: this is an optional task operation.
|
WorkflowPath |
startWorkflow(String workflowDefinitionId,
Map<org.alfresco.service.namespace.QName,Serializable> parameters)
Start a Workflow Instance
|
WorkflowTask |
suspendTask(String taskId)
Suspend the specified Task
|
void |
undeployDefinition(String workflowDefinitionId)
Undeploy an exisiting Workflow Definition
TODO: Determine behaviour when "in-flight" workflow instances exist
|
WorkflowTask |
updateTask(String taskId,
Map<org.alfresco.service.namespace.QName,Serializable> properties,
Map<org.alfresco.service.namespace.QName,List<org.alfresco.service.cmr.repository.NodeRef>> add,
Map<org.alfresco.service.namespace.QName,List<org.alfresco.service.cmr.repository.NodeRef>> remove)
Update the Properties and Associations of a Task
|
afterPropertiesSet, setDictionaryService, setMessageService, setNamespaceService, setTenantService, setWorkflowAuthorityManager, setWorkflowObjectFactorycreateGlobalId, createLocalId, getEngineId, setBPMEngineRegistry, setEngineIdprotected org.alfresco.service.cmr.repository.NodeService nodeService
protected ServiceRegistry serviceRegistry
protected PersonService personService
protected AuthorityDAO authorityDAO
protected org.springmodules.workflow.jbpm31.JbpmTemplate jbpmTemplate
protected org.alfresco.service.cmr.search.SearchService unprotectedSearchService
protected org.alfresco.service.cmr.repository.StoreRef companyHomeStore
protected String companyHomePath
protected static final String ERR_INVALID_EVENT
protected static final String ERR_FIND_COMPLETED_TASK_INSTS
protected static final String ERR_END_TASK_INVALID_TRANSITION
public static final String ENGINE_ID
public void setJBPMTemplate(org.springmodules.workflow.jbpm31.JbpmTemplate jbpmTemplate)
jbpmTemplate - public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - public void setPersonService(PersonService personService)
personService - public void setAuthorityDAO(AuthorityDAO authorityDAO)
authorityDAO - public void setServiceRegistry(ServiceRegistry serviceRegistry)
serviceRegistry - public void setCompanyHomePath(String companyHomePath)
companyHomePath - public void setCompanyHomeStore(String companyHomeStore)
companyHomeStore - public void setUnprotectedSearchService(org.alfresco.service.cmr.search.SearchService unprotectedSearchService)
unprotectedSearchService - public WorkflowDeployment deployDefinition(InputStream workflowDefinition, String mimetype)
WorkflowComponentdeployDefinition in interface WorkflowComponentworkflowDefinition - the content object containing the definitionmimetype - (optional) the mime type of the workflow definitionpublic WorkflowDeployment deployDefinition(InputStream workflowDefinition, String mimetype, String name)
WorkflowComponentdeployDefinition in interface WorkflowComponentworkflowDefinition - the content object containing the definitionmimetype - (optional) the mime type of the workflow definitionname - (optional) a name to represent the deploymentpublic boolean isDefinitionDeployed(InputStream workflowDefinition, String mimetype)
WorkflowComponentisDefinitionDeployed in interface WorkflowComponentworkflowDefinition - the definition to checkmimetype - the mimetype of the definitionpublic void undeployDefinition(String workflowDefinitionId)
WorkflowComponentundeployDefinition in interface WorkflowComponentworkflowDefinitionId - the id of the definition to undeploypublic List<WorkflowDefinition> getDefinitions()
getDefinitions in interface WorkflowComponentpublic List<WorkflowDefinition> getAllDefinitions()
WorkflowComponentgetAllDefinitions in interface WorkflowComponentpublic WorkflowDefinition getDefinitionById(String workflowDefinitionId)
WorkflowComponentgetDefinitionById in interface WorkflowComponentworkflowDefinitionId - the workflow definition idpublic WorkflowDefinition getDefinitionByName(String workflowName)
WorkflowComponentgetDefinitionByName in interface WorkflowComponentworkflowName - workflow name e.g. jbpm$wf:reviewpublic List<WorkflowDefinition> getAllDefinitionsByName(String workflowName)
WorkflowComponentgetAllDefinitionsByName in interface WorkflowComponentworkflowName - workflow name e.g. jbpm$wf:reviewpublic byte[] getDefinitionImage(String workflowDefinitionId)
WorkflowComponentgetDefinitionImage in interface WorkflowComponentworkflowDefinitionId - the workflow definition idpublic List<WorkflowTaskDefinition> getTaskDefinitions(String workflowDefinitionId)
WorkflowComponentgetTaskDefinitions in interface WorkflowComponentworkflowDefinitionId - the workflow definition idprotected org.jbpm.graph.def.ProcessDefinition getProcessDefinition(org.jbpm.db.GraphSession graphSession,
String workflowDefinitionId)
graphSession - jBPM graph sessionworkflowDefinitionId - workflow definition idpublic WorkflowPath startWorkflow(String workflowDefinitionId, Map<org.alfresco.service.namespace.QName,Serializable> parameters)
WorkflowComponentstartWorkflow in interface WorkflowComponentworkflowDefinitionId - the workflow definition idparameters - the initial set of parameters used to populate the "Start Task" propertiespublic List<WorkflowInstance> getActiveWorkflows()
getActiveWorkflows in interface WorkflowComponentpublic List<WorkflowInstance> getCompletedWorkflows()
getCompletedWorkflows in interface WorkflowComponentpublic List<WorkflowInstance> getWorkflows()
getWorkflows in interface WorkflowComponentpublic List<WorkflowInstance> getActiveWorkflows(String workflowDefinitionId)
getActiveWorkflows in interface WorkflowComponentworkflowDefinitionId - the workflow definition idpublic List<WorkflowInstance> getCompletedWorkflows(String workflowDefinitionId)
getCompletedWorkflows in interface WorkflowComponentworkflowDefinitionId - the workflow definition idpublic List<WorkflowInstance> getWorkflows(String workflowDefinitionId)
getWorkflows in interface WorkflowComponentworkflowDefinitionId - the workflow definition idpublic List<WorkflowInstance> getWorkflows(WorkflowInstanceQuery workflowInstanceQuery)
WorkflowComponentgetWorkflows in interface WorkflowComponentpublic List<WorkflowInstance> getWorkflows(WorkflowInstanceQuery query, int maxItems, int skipCount)
WorkflowComponentgetWorkflows in interface WorkflowComponentpublic long countWorkflows(WorkflowInstanceQuery workflowInstanceQuery)
WorkflowComponentcountWorkflows in interface WorkflowComponentpublic long countTasks(WorkflowTaskQuery query)
TaskComponentcountTasks in interface TaskComponentquery - the filter by which tasks are queriedpublic WorkflowInstance getWorkflowById(String workflowId)
getWorkflowById in interface WorkflowComponentworkflowId - the id of the workflow to retrieveprotected org.jbpm.graph.exe.ProcessInstance getProcessInstance(org.jbpm.db.GraphSession graphSession,
String workflowId)
graphSession - jBPM graph sessionworkflowId - workflow idpublic List<WorkflowPath> getWorkflowPaths(String workflowId)
WorkflowComponentgetWorkflowPaths in interface WorkflowComponentworkflowId - workflow instance idpublic Map<org.alfresco.service.namespace.QName,Serializable> getPathProperties(String pathId)
WorkflowComponentgetPathProperties in interface WorkflowComponentpathId - workflow path idpublic WorkflowInstance cancelWorkflow(String workflowId)
WorkflowComponentcancelWorkflow in interface WorkflowComponentworkflowId - the workflow instance to cancelpublic List<WorkflowInstance> cancelWorkflows(List<String> workflowIds)
WorkflowComponentcancelWorkflows in interface WorkflowComponentworkflowIds - List of the workflow instances to cancelpublic WorkflowInstance deleteWorkflow(String workflowId)
WorkflowComponentdeleteWorkflow in interface WorkflowComponentworkflowId - the workflow instance to cancelpublic WorkflowPath signal(String pathId, String transition)
WorkflowComponentsignal in interface WorkflowComponentpathId - the workflow path to signal onpublic WorkflowPath fireEvent(String pathId, String event)
WorkflowComponentfireEvent in interface WorkflowComponentpathId - the workflow path to fire event onevent - name of eventpublic List<WorkflowTask> getTasksForWorkflowPath(String pathId)
getTasksForWorkflowPath in interface WorkflowComponentpathId - the path idpublic List<WorkflowTask> getTasksForWorkflowPath(String pathId, boolean sameSession)
public List<WorkflowTimer> getTimers(String workflowId)
WorkflowComponentgetTimers in interface WorkflowComponentpublic boolean hasWorkflowImage(String workflowInstanceId)
WorkflowComponenthasWorkflowImage in interface WorkflowComponentworkflowInstanceId - the workflow instance idpublic InputStream getWorkflowImage(String workflowInstanceId)
WorkflowComponentgetWorkflowImage in interface WorkflowComponentworkflowInstanceId - the workflow instance idpublic List<WorkflowTask> getAssignedTasks(String authority, WorkflowTaskState state, boolean lazyInitialization)
getAssignedTasks in interface TaskComponentauthority - the authoritystate - filter by specified workflow task statelazyInitialization - hint in order to return partially-initialized entitiespublic List<WorkflowTask> getAssignedTasksInternal(String authority, WorkflowTaskState state, boolean sameSession)
protected List<WorkflowTask> getWorkflowTasks(org.hibernate.Session session, List<Object[]> rows)
public List<WorkflowTask> getPooledTasks(List<String> authorities, boolean lazyInitialization)
TaskComponentgetPooledTasks in interface TaskComponentlazyInitialization - hint in order to return partially-initialized entitiespublic List<WorkflowTask> queryTasks(WorkflowTaskQuery query)
queryTasks in interface TaskComponentpublic List<WorkflowTask> queryTasks(WorkflowTaskQuery query, boolean sameSession)
TaskComponentqueryTasks in interface TaskComponentquery - the filter by which tasks are queriedsameSession - indicates that the returned WorkflowTask elements will be used in
the same session. If true, the returned List will be a lazy loaded list
providing greater performance.protected List<WorkflowTask> getWorkflowTasks(List<org.jbpm.taskmgmt.exe.TaskInstance> tasks)
protected List<WorkflowTask> getWorkflowTasks(List<org.jbpm.taskmgmt.exe.TaskInstance> tasks, boolean sameSession)
protected org.jbpm.taskmgmt.exe.TaskInstance getTaskInstance(org.jbpm.db.TaskMgmtSession taskSession,
String taskId)
taskSession - jBPM task sessiontaskId - task idpublic WorkflowTask updateTask(String taskId, Map<org.alfresco.service.namespace.QName,Serializable> properties, Map<org.alfresco.service.namespace.QName,List<org.alfresco.service.cmr.repository.NodeRef>> add, Map<org.alfresco.service.namespace.QName,List<org.alfresco.service.cmr.repository.NodeRef>> remove)
TaskComponentupdateTask in interface TaskComponenttaskId - the task id to updateproperties - the map of properties to set on the task (or null, if none to set)add - the map of items to associate with the task (or null, if none to add)remove - the map of items to dis-associate with the task (or null, if none to remove)public WorkflowTask startTask(String taskId)
TaskComponentstartTask in interface TaskComponenttaskId - the task to startpublic WorkflowTask suspendTask(String taskId)
TaskComponentsuspendTask in interface TaskComponentpublic WorkflowTask endTask(String taskId, String transition)
TaskComponentendTask in interface TaskComponenttaskId - the task id to endpublic WorkflowTask getTaskById(String taskId)
TaskComponentgetTaskById in interface TaskComponenttaskId - the task idpublic WorkflowTask getStartTask(String workflowInstanceId)
TaskComponentgetStartTask in interface TaskComponentpublic List<WorkflowTask> getStartTasks(List<String> workflowInstanceIds, boolean sameSession)
TaskComponentgetStartTasks in interface TaskComponentprotected org.alfresco.repo.workflow.jbpm.JBPMEngine.CompiledProcessDefinition compileProcessDefinition(InputStream definitionStream, String mimetype)
workflowDefinition - stream to create process definition frommimetype - mimetype of streamprotected long getJbpmId(String id)
id - global idprotected org.jbpm.graph.exe.Token getWorkflowToken(org.jbpm.db.GraphSession session,
String pathId)
session - JBoss JBPM Graph SessionpathId - workflow path idprotected Map<org.alfresco.service.namespace.QName,Serializable> getTaskProperties(org.jbpm.taskmgmt.exe.TaskInstance instance, boolean localProperties)
instance - task instanceproperties - properties to setprotected Map<org.alfresco.service.namespace.QName,Serializable> getTaskProperties(org.jbpm.taskmgmt.exe.TaskInstance instance, boolean localProperties, Map<Long,org.jbpm.context.exe.TokenVariableMap> variablesCache)
instance - task instanceproperties - properties to setvariablesCache - cahce of context instance variables if any existsprotected void setTaskProperties(org.jbpm.taskmgmt.exe.TaskInstance instance,
Map<org.alfresco.service.namespace.QName,Serializable> properties)
instance - task instanceproperties - properties to setprotected void setDefaultTaskProperties(org.jbpm.taskmgmt.exe.TaskInstance instance)
instance - task instancepublic void setDefaultStartTaskDescription(org.jbpm.taskmgmt.exe.TaskInstance instance)
instance - task instanceprotected void setDefaultWorkflowProperties(org.jbpm.taskmgmt.exe.TaskInstance startTask)
startTask - start task instanceprotected org.alfresco.service.namespace.QName[] getMissingMandatoryTaskProperties(org.jbpm.taskmgmt.exe.TaskInstance instance)
instance - task instanceprotected WorkflowPath createWorkflowPath(org.jbpm.graph.exe.Token token)
token - JBoss JBPM TokenwfInstance - node - protected WorkflowPath createWorkflowPath(org.jbpm.graph.exe.Token token, WorkflowInstance wfInstance, WorkflowNode node)
token - JBoss JBPM TokenwfInstance - node - protected WorkflowNode createWorkflowNode(org.jbpm.graph.def.Node node)
node - JBoss JBPM Nodeprotected WorkflowTransition createWorkflowTransition(org.jbpm.graph.def.Transition transition)
transition - JBoss JBPM Transitionprotected WorkflowInstance createWorkflowInstance(org.jbpm.graph.exe.ProcessInstance instance)
protected WorkflowInstance createWorkflowInstance(org.jbpm.graph.exe.ProcessInstance instance, WorkflowDefinition definition, Date endDate, Map<String,Object> variables)
instance - JBoss JBPM Process InstanceendDate - variables - protected WorkflowDefinition createWorkflowDefinition(org.jbpm.graph.def.ProcessDefinition definition)
definition - JBoss Process Definitionprotected WorkflowTask createWorkflowTask(org.jbpm.taskmgmt.exe.TaskInstance task)
task - protected WorkflowTaskDefinition createWorkflowTaskDefinition(org.jbpm.taskmgmt.def.Task task)
task - JBoss JBPM Taskprotected WorkflowDeployment createWorkflowDeployment(org.alfresco.repo.workflow.jbpm.JBPMEngine.CompiledProcessDefinition compiledDef)
compiledDef - compiled JBPM process definitionprotected WorkflowTimer createWorkflowTimer(org.jbpm.job.Timer timer)
timer - jBPM Timerprotected WorkflowTaskState getWorkflowTaskState(org.jbpm.taskmgmt.exe.TaskInstance task)
task - taskprotected org.alfresco.service.namespace.QName getDefaultStartTaskType()
getDefaultStartTaskType in class AlfrescoBpmEngineCopyright © 2005–2014 Alfresco Software. All rights reserved.