use of org.camunda.bpm.engine.impl.cmmn.behavior.CallingTaskActivityBehavior in project camunda-bpm-platform by camunda.
the class CallingTaskItemHandler method initializeCallableElement.
protected void initializeCallableElement(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) {
Deployment deployment = context.getDeployment();
String deploymentId = null;
if (deployment != null) {
deploymentId = deployment.getId();
}
BaseCallableElement callableElement = createCallableElement();
callableElement.setDeploymentId(deploymentId);
// set callableElement on behavior
CallingTaskActivityBehavior behavior = (CallingTaskActivityBehavior) activity.getActivityBehavior();
behavior.setCallableElement(callableElement);
// definition key
initializeDefinitionKey(element, activity, context, callableElement);
// binding
initializeBinding(element, activity, context, callableElement);
// version
initializeVersion(element, activity, context, callableElement);
// tenant-id
initializeTenantId(element, activity, context, callableElement);
}
Aggregations