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

Question

Question

"End Workflow" Activity

asked on November 14, 2014

Hey,

 

I'm looking to do something very simple (seemingly), but it doesn't appear to be possible.  I'd like to create a workflow with 2 activities that starts based on application of a tag.  The objective is to move the entry and end the Accounts Payable workflow, no matter where it is in the process.

Here are the steps:

1. User applies "Reject AP" Tag

2. WF Moves the entry back to Incoming Scans

3. Workflow Ends the other workflow (AP) running on the entry.

Is there a way to do this?  Possibly with the Script activity?

0 0

Answer

SELECTED ANSWER
replied on November 14, 2014

See this older post on possible solutions.

0 0

Replies

replied on November 14, 2014

Hey Eric,

Can I ask what the specifics of the Accounts Payable workflow are that you need to be able to end it at any time? For most circumstances I'd say to modify that Workflow so that you check if the Reject AP tag is set and then move the document back and end the current workflow.

1 0
replied on November 17, 2014

Kevin,

This would be to return the document to the starting point if any incorrect information is found in the metadata.  The idea was to make a very quick "reset" for it, without having to go through the workflow and add a "check for tag" at each step.  Instead of adding several separate checks within the AP workflow (and another routing decision in each branch), this would be a 3-step workflow to shut down the first, send an email, and move the doc back to the originating folder.

0 0
replied on November 17, 2014

You could use a parallel activity at the beginning of the workflow, with the current AP workflow in one branch and a "check for tag" step in the other. If the tag is ever there, you can call that workflow and then end this parent workflow. Although with this approach you'd also have to call "end workflow" at the end of your main branch too.

The link Miruna provided gives a way of using scripting to end a separate workflow, if you want to go that route.

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

Sign in to reply to this post.