Completing External Form task from flow
Comments
-
I have a task/assignment created by an external form. And, in certain scenario, I need to complete that task from the flow so that the flow can progress to the next step without further waiting for the users action through the external form task. I have tried using the "ProcessFormAssignmentResponse" with the relevant response value as suggested in URL "[url=https://documentation.decisions.com/docs/working-task-flow-flow-b]https://documentation.decisions.com/docs/working-task-flow-flow-b[/url]" although scenario is a bit different (the image of service outcomes attached).
[color=rgb(127, 140, 141)][font=Roboto][img]att1[/img][/font][/color]
But, I keep getting the following error upon executing the separate flow with the "ProcessFormAssignmentResponse" step.
Name: Error running step Process Form Assignment Response 1[InvokeInternalServiceMethodStep] in flow [Demo Flow 3]: Form Assignment cannot be processed. There is no outcome path respecting the response: RespondReview Exception Message: Error running step Process Form Assignment Response 1[InvokeInternalServiceMethodStep] in flow [Demo Flow 3]: Form Assignment cannot be processed. There is no outcome path respecting the response: RespondReview
Input Values: -- No Data --
Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Process Form Assignment Response 1[InvokeInternalServiceMethodStep] in flow [Demo Flow 3]: Form Assignment cannot be processed. There is no outcome path respecting the response: RespondReview ---> System.Exception: Form Assignment cannot be processed. There is no outcome path respecting the response: RespondReview at DecisionsFramework.ServiceLayer.Services.Assignments.AssignmentService.ProcessFormAssignmentResponse(AbstractUserContext userContext, String assignmentId, String responseName, String comment, FileData[] files) at AssignmentServiceWrapper.ProcessFormAssignmentResponse(AbstractUserContext userContext, String assignmentId, String response, String comment, FileData[] files)
--- End of inner exception stack trace ---
-
Hello,
There is actually a way to do this built into the external form assignment.
If you click on "View Integration Details" on you external form, you should see a sub menu on the integration page with your services listed:[img]att6[/img]
Clicking on the service you generate, you should see a list with actions for your outcome paths:
[img]att5[/img]
“DesiredPathComplete” will complete the assignment on the desired outcome path. Well get this page when we click on it:
[img]att4[/img]
We setup our integration details as we have them configured and press the “Show” button to give us a URL. Note that in this URL, we need to replace the "string value" tag for StepTrackingID and FlowTrackingID.
In debug, the external form opens and we can see the flow tracking ID and step tracking ID in the URL:
[img]att9[/img]
We copy and paste those two items into the URL we grabbed from the step integration page earlier and build it out:
[img]att7[/img]
[img]att8[/img]When we run our built up URL, we send a request via GET to complete the flow.
[img]att2[/img]
[img]att3[/img]We can see in the debugger that flow is completed now:
[img]att1[/img]
Let me know how this solution works out for you.
[i]edited by Watson@decisions.com on 8/6/2019[/i]
Howdy, Stranger!
Categories
- 4.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions