public class BPMN2DataServiceImpl extends Object implements DefinitionService, DeploymentEventListener
Constructor and Description |
---|
BPMN2DataServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addProcessDefinition(String deploymentId,
String processId,
Object processDescriptor,
org.kie.api.runtime.KieContainer kieContainer) |
ProcessDefinition |
buildProcessDefinition(String deploymentId,
String bpmn2Content,
org.kie.api.runtime.KieContainer kieContainer,
boolean cache)
Performs build operation for given bpmn2content to produce fully populated
ProcessDefinition |
Map<String,Collection<String>> |
getAssociatedEntities(String deploymentId,
String processId)
Returns all organizational entities identifiers involved in the process - like users and groups.
|
Set<String> |
getJavaClasses(String deploymentId,
String processId)
Returns a list of all referenced java classes defined in the given process.
|
ProcessDefinition |
getProcessDefinition(String deploymentId,
String processId)
Returns previously built
ProcessDefinition . |
Map<String,String> |
getProcessVariables(String deploymentId,
String processId)
Returns all process variables defined in the given process where:
key in the map is name of the process variable
value in the map is type of the process variable
NOTE: This method assumes process has already been built by invoking buildProcessDefinition method |
Collection<String> |
getReusableSubProcesses(String deploymentId,
String processId)
Returns collection of process identifiers of reusable processes used by given process.
|
Set<String> |
getRuleSets(String deploymentId,
String processId)
Returns a list of all referenced rules used in the given process.
|
Map<String,String> |
getServiceTasks(String deploymentId,
String processId)
Returns service (domain specific) tasks defined in the process where:
key in the map is name of the task node
value in the map is name of the domain specific service (name that handler should be registered with)
NOTE: This method assumes process has already been built by invoking buildProcessDefinition method |
Map<String,String> |
getTaskInputMappings(String deploymentId,
String processId,
String taskName)
Returns map of data input defined for given user task
key in the map is identifier of dataInput
value in the map is name dataInput
NOTE: This method assumes process has already been built by invoking buildProcessDefinition method |
Map<String,String> |
getTaskOutputMappings(String deploymentId,
String processId,
String taskName)
Returns map of data output defined for given user task
key in the map is identifier of dataOutput
value in the map is name dataOutput
NOTE: This method assumes process has already been built by invoking buildProcessDefinition method |
Collection<UserTaskDefinition> |
getTasksDefinitions(String deploymentId,
String processId)
Returns all user task definitions defined in given process
NOTE: This method assumes process has already been built by invoking buildProcessDefinition method |
void |
onActivate(DeploymentEvent event) |
void |
onDeactivate(DeploymentEvent event) |
void |
onDeploy(DeploymentEvent event) |
void |
onUnDeploy(DeploymentEvent event) |
public void addProcessDefinition(String deploymentId, String processId, Object processDescriptor, org.kie.api.runtime.KieContainer kieContainer)
addProcessDefinition
in interface DefinitionService
public ProcessDefinition buildProcessDefinition(String deploymentId, String bpmn2Content, org.kie.api.runtime.KieContainer kieContainer, boolean cache) throws IllegalArgumentException
DefinitionService
ProcessDefinition
buildProcessDefinition
in interface DefinitionService
deploymentId
- identifier of deployment this process belongs to,
might be null if built definition does not need to be storedbpmn2Content
- actual BPMN xml content as string to be parsed and processedkieContainer
- the KieContainer
instance that contains the deployment project: this should be used when
parsing the BPMN2 in case custom classes or other project resources (processes, rules) are referencedcache
- indicates if the definition service should cache this ProcessDefinition
ProcessDefinition
IllegalArgumentException
- in case build operation cannot be completedpublic Map<String,String> getServiceTasks(String deploymentId, String processId)
DefinitionService
buildProcessDefinition
methodgetServiceTasks
in interface DefinitionService
deploymentId
- identifier of deployment that process belongs toprocessId
- identifier of the processpublic ProcessDefinition getProcessDefinition(String deploymentId, String processId)
DefinitionService
ProcessDefinition
.
buildProcessDefinition
methodgetProcessDefinition
in interface DefinitionService
deploymentId
- identifier of deployment that process belongs toprocessId
- identifier of the processProcessDefinition
public Collection<String> getReusableSubProcesses(String deploymentId, String processId)
DefinitionService
buildProcessDefinition
methodgetReusableSubProcesses
in interface DefinitionService
deploymentId
- identifier of deployment that process belongs toprocessId
- identifier of the processpublic Map<String,String> getProcessVariables(String deploymentId, String processId)
DefinitionService
buildProcessDefinition
methodgetProcessVariables
in interface DefinitionService
deploymentId
- identifier of deployment that process belongs toprocessId
- identifier of the processpublic Map<String,Collection<String>> getAssociatedEntities(String deploymentId, String processId)
DefinitionService
buildProcessDefinition
methodgetAssociatedEntities
in interface DefinitionService
deploymentId
- identifier of deployment that process belongs toprocessId
- identifier of the processpublic Collection<UserTaskDefinition> getTasksDefinitions(String deploymentId, String processId)
DefinitionService
buildProcessDefinition
methodgetTasksDefinitions
in interface DefinitionService
deploymentId
- identifier of deployment that process belongs toprocessId
- identifier of the processUserTaskDefinition
s or empty collection if none were foundpublic Map<String,String> getTaskInputMappings(String deploymentId, String processId, String taskName)
DefinitionService
buildProcessDefinition
methodgetTaskInputMappings
in interface DefinitionService
deploymentId
- identifier of deployment that process belongs toprocessId
- identifier of the processtaskName
- name of a task the data input should be collected forpublic Map<String,String> getTaskOutputMappings(String deploymentId, String processId, String taskName)
DefinitionService
buildProcessDefinition
methodgetTaskOutputMappings
in interface DefinitionService
deploymentId
- identifier of deployment that process belongs toprocessId
- identifier of the processtaskName
- name of a task the data output should be collected forpublic void onDeploy(DeploymentEvent event)
onDeploy
in interface DeploymentEventListener
public void onUnDeploy(DeploymentEvent event)
onUnDeploy
in interface DeploymentEventListener
public void onActivate(DeploymentEvent event)
onActivate
in interface DeploymentEventListener
public void onDeactivate(DeploymentEvent event)
onDeactivate
in interface DeploymentEventListener
public Set<String> getJavaClasses(String deploymentId, String processId)
DefinitionService
buildProcessDefinition
methodgetJavaClasses
in interface DefinitionService
deploymentId
- identifier of deployment that process belongs toprocessId
- identifier of the processpublic Set<String> getRuleSets(String deploymentId, String processId)
DefinitionService
buildProcessDefinition
methodgetRuleSets
in interface DefinitionService
deploymentId
- identifier of deployment that process belongs toprocessId
- identifier of the processCopyright © 2001–2018 JBoss by Red Hat. All rights reserved.