Hello, I have a project which contains six very large workflows which I have all of these published seperately to our gallery.
I want to schedule them but want to run in order.
I am thinking about importing them into one workflow to run in sequence and write audit records to a SQL table at the start and end of each workflow.
Is there a way to export each workflow to a macro and then add these as seperate objects rather than copying and pasting the workflows into tool containers?
any suggestions would be appreciated
Steve
Solved! Go to Solution.
Hi Steve
There are a few ways you could do this.
1. Schedule that apps in sequence on your server
Leave enough time between them to ensure that they can complete in the worse case.
Create a logging app that you can schedule before the start of each of your main apps
Benefits-
you don't have to modify your existing workflows in any way
if one of your workflows errors out, it won't affect the scheduling of the others
Drawbacks
messy
tricky to maintain
2. Save each one as an Analytic App and chain together
Go to the workflow tab in the configuration and specify the Type as Analytic App.
Then in the interface designer, in the On Success - Run Another Analytic App box specify the name to the next app to run.
Repeat for all 6 workflows.
Benefits
Workflows will sequentially run as a unit
Drawbacks
Either change the existing workflows to put in the logging functionality or build other apps to run between these to log execution data
if one errors out the entire chain will stop
3. Save each one as a standard macro.
You'll need to add a macro input and output to each one so that you can chain them
Create a wrapper workflow that implements the logging functionality
Chain the macros together with logging steps in between them
Benefits
Runs as a unit
Drawbacks
if one errors out the entire workflow will stop
Dan
Many thanks for the advise Dan.
I will look into making macros
regards
steve