How i can continue a task of retry times exhaust

Hi, I use a http task in my process, it is defined like this:

<serviceTask id="mock-fail-request" name="fail request" flowable:async="true" flowable:exclusive="false" flowable:type="http">
  <extensionElements>
    <flowable:field name="requestMethod">
      <flowable:string><![CDATA[POST]]></flowable:string>
    </flowable:field>
    <flowable:field name="requestUrl">
      <flowable:string><![CDATA[http://10.10.134.110:20095/api/tm/clients/summary]]></flowable:string>
    </flowable:field>
    <flowable:field name="requestBody">
      <flowable:expression><![CDATA[{
	"id":1,
	"method":"mockFail",
	"params":["${execution.processInstanceId}",${status}]
}]]></flowable:expression>
    </flowable:field>
    <flowable:field name="handleStatusCodes">
      <flowable:string><![CDATA[500]]></flowable:string>
    </flowable:field>
    <flowable:field name="ignoreException">
      <flowable:string><![CDATA[false]]></flowable:string>
    </flowable:field>
    <flowable:field name="saveResponseVariableAsJson">
      <flowable:string><![CDATA[true]]></flowable:string>
    </flowable:field>
  </extensionElements>
</serviceTask>

now the restful failed always. so i query executions via restful api:

{
    "data": [
        {
            "id": "d3c53069-a856-11e9-a096-0242ac140002",
            "url": "http://localhost:28888/flowable-task/process-api/runtime/executions/d3c53069-a856-11e9-a096-0242ac140002",
            "parentId": null,
            "parentUrl": null,
            "superExecutionId": null,
            "superExecutionUrl": null,
            "processInstanceId": "d3c53069-a856-11e9-a096-0242ac140002",
            "processInstanceUrl": "http://localhost:28888/flowable-task/process-api/runtime/process-instances/d3c53069-a856-11e9-a096-0242ac140002",
            "suspended": false,
            "activityId": null,
            "tenantId": ""
        },
        {
            "id": "d4cbcb06-a856-11e9-a096-0242ac140002",
            "url": "http://localhost:28888/flowable-task/process-api/runtime/executions/d4cbcb06-a856-11e9-a096-0242ac140002",
            "parentId": "d3c53069-a856-11e9-a096-0242ac140002",
            "parentUrl": "http://localhost:28888/flowable-task/process-api/runtime/executions/d3c53069-a856-11e9-a096-0242ac140002",
            "superExecutionId": null,
            "superExecutionUrl": null,
            "processInstanceId": "d3c53069-a856-11e9-a096-0242ac140002",
            "processInstanceUrl": "http://localhost:28888/flowable-task/process-api/runtime/process-instances/d3c53069-a856-11e9-a096-0242ac140002",
            "suspended": false,
            "activityId": "mock-fail-request",
            "tenantId": ""
        }
    ],
    "total": 2,
    "start": 0,
    "sort": "processInstanceId",
    "order": "asc",
    "size": 2
}

When the service recovery , I want to continue that process instance, i call restful api:

PUT http://localhost:28888/flowable-task/process-api/runtime/executions/d4cbcb06-a856-11e9-a096-0242ac140002

and with request:

{
	"action":"signal",
	"variables": []
}

however, an error throw:

{
    "message": "Internal server error",
    "exception": "this activity isn't waiting for a trigger"
}

So, how can i continue my process instance in the case?

Thanks

Hi Shawn-Yang,

I would expect that your job is moved to the dead letter queue. It is possible activate the job form dead letter queue. follow:

Regards
Martin

exactly solution, thanks

1 Like

I am going to do a PR to document that

done: https://github.com/flowable/flowable-engine/pull/1849