-
1. Re: Embedded JBPM - Is it possible to get Human Task variables names?
jimmy001 Aug 25, 2015 2:44 AM (in response to cmsr)1 of 1 people found this helpfulHi,
use DefinitionService.getTaskInputMappings/ getTaskOutputMappings.
But it has some limitations. Variable names must match valid java variable names. You might need a property file.
Kind regards,
J.
-
2. Re: Embedded JBPM - Is it possible to get Human Task variables names?
cmsr Aug 25, 2015 10:14 AM (in response to jimmy001)!Hi Jimmy,
Thank you very much for your answer.
For what I see from the DefinitionService it needs the DeploymentService, am I right?
DeploymentUnit deploymentUnit = new KModuleDeploymentUnit(GROUP_ID, ARTIFACT_ID, VERSION);
deploymentService.deploy(deploymentUnit);
units.add(deploymentUnit);
String processId = "org.jbpm.writedocument";
ProcessDefinition procDef = bpmn2Service.getProcessDefinition(deploymentUnit.getIdentifier(), processId);
But in my case, I am using RuntimeManager directly and deploying the definitions like this:
JbpmWorkflowEngine.knowledgeBuilder.add(resource, ResourceType.BPMN2)
val kBase = JbpmWorkflowEngine.knowledgeBuilder.newKnowledgeBase();
val process:Process = kBase.getProcess(processDefinitionID)
JbpmWorkflowEngine.runtimeEngine.getKieSession.getKieBase.asInstanceOf[KnowledgeBaseImpl].addProcess(process)
Is there any way to register the DefinitionService in this case?
-
3. Re: Embedded JBPM - Is it possible to get Human Task variables names?
jimmy001 Aug 27, 2015 2:40 AM (in response to cmsr)Hi,
I am using the 6.2 CDI API, so I fear I can't help how to achieve this in a different way. Perhaps you can salvage the
code of the CDI Bean.
Good luck
J
-
4. Re: Embedded JBPM - Is it possible to get Human Task variables names?
cmsr Aug 27, 2015 10:57 AM (in response to jimmy001)Thank you Jimmy for your time. I was able to get the information I need with your tip. Cheers, CR