use of org.camunda.bpm.model.cmmn.instance.Stage in project camunda-cmmn-model by camunda.
the class CreateModelTest method createCaseWithOneStageAndNestedHumanTask.
@Test
public void createCaseWithOneStageAndNestedHumanTask() {
// create process
Case caseInstance = createElement(definitions, "case-with-one-human-task", Case.class);
// create case plan model
CasePlanModel casePlanModel = createElement(caseInstance, "casePlanModel_1", CasePlanModel.class);
// create a stage
Stage stage = createElement(casePlanModel, "Stage_1", Stage.class);
// create elements
HumanTask humanTask = createElement(stage, "HumanTask_1", HumanTask.class);
// create a plan item
PlanItem planItem = createElement(stage, "PlanItem_1", PlanItem.class);
// set definition to human task
planItem.setDefinition(humanTask);
}
Aggregations