1 of 1 people found this helpful
use DefinitionService.getTaskInputMappings/ getTaskOutputMappings.
But it has some limitations. Variable names must match valid java variable names. You might need a property file.
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);
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:
val kBase = JbpmWorkflowEngine.knowledgeBuilder.newKnowledgeBase();
val process:Process = kBase.getProcess(processDefinitionID)
Is there any way to register the DefinitionService in this case?
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.
Thank you Jimmy for your time. I was able to get the information I need with your tip. Cheers, CR