Пример #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testThrowErrorOnCreateAndCatchOnEventSubprocess()
        public virtual void testThrowErrorOnCreateAndCatchOnEventSubprocess()
        {
            // given
            BpmnModelInstance model = createModelThrowErrorInListenerAndCatchOnEventSubprocess([email protected]_Fields.EVENTNAME_CREATE);

            Console.WriteLine(Bpmn.convertToString(model));
            testRule.deploy(model);

            // when
            runtimeService.startProcessInstanceByKey("process");

            // then
            verifyErrorGotCaught();
        }
Пример #2
0
        protected internal static StringAsset createScriptTaskProcess(string scriptFormat, string scriptText)
        {
            BpmnModelInstance modelInstance = Bpmn.createExecutableProcess(PROCESS_ID).startEvent().scriptTask().scriptFormat(scriptFormat).scriptText(scriptText).camundaResultVariable(RESULT_VARIABLE).userTask().endEvent().done();

            return(new StringAsset(Bpmn.convertToString(modelInstance)));
        }