Exemple #1
0
        protected internal static StringAsset createScriptTaskProcess(string scriptFormat, string scriptText)
        {
            BpmnModelInstance modelInstance = Bpmn.createExecutableProcess(PROCESS_ID).startEvent().scriptTask().scriptFormat(scriptFormat).scriptText(scriptText).userTask().endEvent().done();

            return(new StringAsset(Bpmn.convertToString(modelInstance)));
        }
Exemple #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive createProcessApplication()
        public static WebArchive createProcessApplication()
        {
            return(initWebArchiveDeployment().addAsResource(new StringAsset(Bpmn.convertToString(Bpmn.createExecutableProcess(TEST_PROCESS).done())), "testProcess.bpmn20.xml"));
        }
Exemple #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Deployment public static org.jboss.shrinkwrap.api.spec.WebArchive createProcessApplication()
        public static WebArchive createProcessApplication()
        {
            BpmnModelInstance process = Bpmn.createExecutableProcess(TEST_PROCESS).startEvent().serviceTask().camundaDelegateExpression("${bpmnElementRetrievalDelegate}").done();

            return(initWebArchiveDeployment().addClass(typeof(BpmnElementRetrievalDelegate)).addAsResource(new StringAsset(Bpmn.convertToString(process)), "testProcess.bpmn20.xml"));
        }