Mark an assignment as complete from external flow?
Comments
-
Hello,
I have a flow with a process folder in it. I want to set an assignment but mark it as complete from another flow. If i set Completed to "True" in the entity_assignment database will it then continue the flow or is there something else I could do to make the flow continue?
-
Hi Jeremy,
If you would like to continue the flow, it is possible to delete the assignment within the external flow. Would this work for your use case?
-
I believe so but let me make sure we are on the same page. So If I have flow and it gets to a form with an assignment on it and after that form in the flow is a rule step, if I delete the assignment the flow will automatically continue to the rule step without any further prompting? If so yes that answered my question. Either way thank you for the assistance!
-
Hi Jeremy,
Updating the completed value of the assignment in your DB will not continue the flow which created the assignment. Instead, you can set a constant value for either the [b]Assignment Reference ID[/b] property from the Add Task steps properties or [b]Assignment Type[/b] inside of the Add Task steps Assignment Setup Properties. Doing this will make the assignments created in that flow easier to find. You can then use some flow logic in combination with a [b]Complete Assignment[/b] step or [b]Complete Assignment With Notes[/b] step. (These steps are found under [b]Integration > Internal Services > Assignment[/b] in your step toolbox)
The Complete Assignment step will only set the assignment to Completed, while Complete Assignment With Notes allows you to specify a desired outcome path for the flow to follow after the assignment is processed. If your flow has separate paths in its logic for different outcomes of an assignment, you would want to use Complete Assignment With Notes. Both of these steps need the assignments ID as an input, so you can get that dynamically by using a Fetch Entities step with either the Assignment Reference ID or Assignment Type you configured earlier with completed equals false and/or assigned user equals as criteria. Set the sort field to created date or start date ascending, and map the Fetch Entities steps Results.First.AssignmentId into your Complete Assignment or Complete Assignment With Notes step.
You can also use these steps in a [b]Warn[/b], [b]Late[/b], or [b]Escalate[/b] flow in the Add Task steps Assignment Setup properties where the assignments ID is included as part of the flows data, eliminating the need for a fetch.
-
Thank you for the reply. I have been trying to set this up and I seem to be missing something. The "Assignment Reference ID" is not the ID that the Complete Assignment wants and I do see that the main ID of the assignment is different from the Reference ID that I set (I set the name to be the same thing as the Assignment Reference ID and it is setting that properly). I do not see an "Assignment Reference ID" in the entity_Assignment table. I do see a reference ID in that table but I tried querying the table selecting Where the "Refernce ID " is equal to the "AssignmentReferenceId" that I set on the folder and got an error. What am I not understanding?
Edit: I found it, its Entity Name in the entity_assignment table. Im going to see if I can get it working now. Thank you again!
[i]edited by Jeremy on 12/27/2019[/i]
[i]
[/i]
[i]Edit 2: The solution submitted by James worked[/i]
[i]edited by Jeremy on 12/27/2019[/i] -
Great work.
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