Search in sources :

Example 36 with CasePlanModelHandler

use of org.camunda.bpm.engine.impl.cmmn.handler.CasePlanModelHandler in project camunda-bpm-platform by camunda.

the class CmmnTransform method transformCasePlanModel.

protected void transformCasePlanModel(CasePlanModel casePlanModel) {
    CasePlanModelHandler transformer = (CasePlanModelHandler) getPlanItemHandler(CasePlanModel.class);
    CmmnActivity newActivity = transformer.handleElement(casePlanModel, context);
    context.setParent(newActivity);
    transformStage(casePlanModel, newActivity);
    context.setParent(newActivity);
    transformer.initializeExitCriterias(casePlanModel, newActivity, context);
    for (CmmnTransformListener transformListener : transformListeners) {
        transformListener.transformCasePlanModel((org.camunda.bpm.model.cmmn.impl.instance.CasePlanModel) casePlanModel, newActivity);
    }
}
Also used : CasePlanModelHandler(org.camunda.bpm.engine.impl.cmmn.handler.CasePlanModelHandler) CasePlanModel(org.camunda.bpm.model.cmmn.instance.CasePlanModel) CmmnActivity(org.camunda.bpm.engine.impl.cmmn.model.CmmnActivity)

Aggregations

CasePlanModelHandler (org.camunda.bpm.engine.impl.cmmn.handler.CasePlanModelHandler)36 CmmnActivity (org.camunda.bpm.engine.impl.cmmn.model.CmmnActivity)36 CmmnSentryDeclaration (org.camunda.bpm.engine.impl.cmmn.model.CmmnSentryDeclaration)35 Test (org.junit.Test)35 ConditionExpression (org.camunda.bpm.model.cmmn.instance.ConditionExpression)34 IfPart (org.camunda.bpm.model.cmmn.instance.IfPart)34 Sentry (org.camunda.bpm.model.cmmn.instance.Sentry)34 SentryHandler (org.camunda.bpm.engine.impl.cmmn.handler.SentryHandler)33 Body (org.camunda.bpm.model.cmmn.instance.Body)22 EntryCriterion (org.camunda.bpm.model.cmmn.instance.EntryCriterion)21 ExitCriterion (org.camunda.bpm.model.cmmn.instance.ExitCriterion)19 CmmnOnPartDeclaration (org.camunda.bpm.engine.impl.cmmn.model.CmmnOnPartDeclaration)2 CasePlanModel (org.camunda.bpm.model.cmmn.instance.CasePlanModel)1