Example #1
0
        public CaseDefinitionBuilder(string caseDefinitionId)
        {
            if (!InstanceFieldsInitialized)
            {
                InitializeInstanceFields();
                InstanceFieldsInitialized = true;
            }
            // instantiate case definition
            caseDefinition = new CmmnCaseDefinition(caseDefinitionId);
            activityStack.Push(caseDefinition);

            // instantiate casePlanModel of case definition (ie. outermost stage)
            createActivity(caseDefinitionId);
            behavior(new StageActivityBehavior());
        }
Example #2
0
 public CmmnActivity(string id, CmmnCaseDefinition caseDefinition) : base(id)
 {
     this.caseDefinition = caseDefinition;
 }