You are viewing limited content. For full access, please sign in.

Question

Question

Token for Forms Activity That Triggered Workflow

asked on July 11, 2016

I have a process in Forms that can trigger one of several paths within a Workflow.  The issue is that I cannot seem to find a token in Workflow that says the specific activity (Name or ID) that triggered the Workflow.  I've added a Track Tokens activity and dug through the Forms tokens that are added automatically but none seem to fit.  The customer is running Forms 10.1 and Workflow 10.0.0.249.  I understand I could create a separate workflow for each of the paths needed but this creates unnecessary Workflow sprawl.  Is there a token in Workflow that allows me to determine the activity that called the Workflow or is my only option to create a bunch of little workflows to account for this limitation?

1 0

Answer

SELECTED ANSWER
replied on August 15, 2016

Yes, I can add it to the enhancements list.

1 0

Replies

replied on July 11, 2016

One way i could think of doing this would be to have a hidden field in your form and assign it a certain value based on your different routes maybe username or something and then use that in your workflow to find out which route initiated the workflow. 

I tried to do something similar where i wanted to find out which user task initiated the workflow since i only wanted to use one workflow but it became too complicated for me so i ended up using separate smaller workflows.

Please let me know if it works or not.

0 0
replied on July 11, 2016

Unfortunately, I have a timer that is triggering to do one thing and a different path that does another and there is no way to update a variable since they both come from the same path, just different reasons.  Thanks for the suggestion.  I figured I would need to create separate WF's but was hoping someone had found a solution.  And if no solution, hopefully this can lead to us getting this token in a future release.

0 0
replied on July 12, 2016

You want be able to know the workflow service task name that triggered the workflow?

0 0
replied on July 12, 2016

No, the Forms activity name or ID that triggered the Workflow.

0 0
replied on July 12, 2016

The activity that triggers the workflow would be a service task. I expect you're actually asking for the user task that precedes that service task? Why would the user task name be preferable over the form name or the form data?

0 0
replied on July 13, 2016

No, I am referring to the service task in the form that triggers the workflow. My forms process has 2 timer activities that call the same workflow: 

  1. I have a timer that sends a reminder every 24 hours if they haven't approved the form.  It also calls a workflow service activity that writes that a reminder was sent into a table variable in the form.
  2. I have a timer that runs every 5 days to escalate the form if not approved.  It also calls the same workflow via a different service activity that writes that an escalation happened into the same table variable in the form.

The verbiage written into that variable is different depending on whether it was a reminder or an escalation.  Without knowing the name or the id of the activity that triggered the workflow, I cannot have a routing decision that provides the different verbiage.  Instead I must create 2 different workflows that do identical functions with slightly different verbiage.  I understand this same info exists in other locations but the customer is requiring it be written directly into variables in the form.  Is there a way to tell which Form activity (name or ID) triggered a workflow?

0 0
replied on August 15, 2016

Any word on a way to tell the actual Form's activity that triggered the workflow?  I have another customer that is wanting to trigger a workflow at the start of the Forms process and again at the end of it.  Instead of having 2 workflows that do very little, it would be nice to be able to contain all of the WF tasks that relate to this Form's process within a single WF.

0 0
replied on August 15, 2016

There is no way to know which timer went off to allow the process to continue on to the service task.

0 0
replied on August 15, 2016

I don't want to know which timer went off.  I want to know the name of the activity that called Workflow.  If this is not possible now, can it be added in the future to know the name of the Forms activity that actually called workflow?

1 0
SELECTED ANSWER
replied on August 15, 2016

Yes, I can add it to the enhancements list.

1 0
replied on December 5, 2018

Miruna, do you know if this enhancement has been updated?  I am having trouble triggering a workflow from Forms as it is constantly being triggered based on the last "Submission Step ID" rather than the task itself.

 

I tried to create the conditional decision in workflow to trigger based on Submission Step ID 1133 but the last submission step ID available is only the user "submission" from a previous task, which is 533.

2 0
You are not allowed to follow up in this post.

Sign in to reply to this post.