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))); }
//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")); }
//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")); }