Martin, Thanks
Made the script task asynchronous. Figured it out how to modify count of failed retry
scriptTask.setFailedJobRetryTimeCycleValue(“R0/”);
I want to end with a Java Delegate to be called which builds my final response for the process being executed. Not able to achieve that. Set BoundaryEvents using the needed definition but not getting called. I have shared the XML
scriptTask.setBoundaryEvents(…)
<?xml version='1.0' encoding='UTF-8'?>
<flowable:executionListener event=“end” class=“com.wipro.platform.has.process.listener.TaskEndExecutionListener”/>
<flowable:field name=“requestMethod”>
flowable:expression</flowable:expression>
</flowable:field>
<flowable:field name=“requestUrl”>
flowable:expression</flowable:expression>
</flowable:field>
<flowable:field name=“requestBody”>
flowable:expression</flowable:expression>
</flowable:field>
<flowable:field name=“requestHeaders”>
flowable:expression</flowable:expression>
</flowable:field>
<flowable:field name=“resultVariablePrefix”>
flowable:string</flowable:string>
</flowable:field>
<flowable:field name=“saveResponseParameters”>
flowable:string</flowable:string>
</flowable:field>
<flowable:field name=“requestTimeout”>
flowable:string</flowable:string>
</flowable:field>
<flowable:field name=“failStatusCodes”>
flowable:string</flowable:string>
</flowable:field>
<flowable:field name=“handleStatusCodes”>
flowable:string</flowable:string>
</flowable:field>
<flowable:field name=“saveRequestVariables”>
flowable:string</flowable:string>
</flowable:field>
<flowable:field name=“ignoreException”>
flowable:string</flowable:string>
</flowable:field>
<flowable:executionListener event=“start” class=“com.wipro.platform.has.process.listener.HttpStartExecutionListener”/>
<flowable:executionListener event=“end” class=“com.wipro.platform.has.process.listener.HttpEndExecutionListener”/>
<bpmndi:BPMNDiagram id=“BPMNDiagram_P_c0abf0ee-4261-4150-a6d2-fd6e09480059”>
<bpmndi:BPMNPlane bpmnElement=“P_c0abf0ee-4261-4150-a6d2-fd6e09480059” id=“BPMNPlane_P_c0abf0ee-4261-4150-a6d2-fd6e09480059”/>
</bpmndi:BPMNDiagram>