Search in sources :

Example 1 with CallingTaskActivityBehavior

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);
}
Also used : CallingTaskActivityBehavior(org.camunda.bpm.engine.impl.cmmn.behavior.CallingTaskActivityBehavior) BaseCallableElement(org.camunda.bpm.engine.impl.core.model.BaseCallableElement) Deployment(org.camunda.bpm.engine.repository.Deployment)

Aggregations

CallingTaskActivityBehavior (org.camunda.bpm.engine.impl.cmmn.behavior.CallingTaskActivityBehavior)1 BaseCallableElement (org.camunda.bpm.engine.impl.core.model.BaseCallableElement)1 Deployment (org.camunda.bpm.engine.repository.Deployment)1