Hi All,

What is the easiest way to prevent an improper start of workflow?

I have a cron job that sends an event (i.e. once an hour) to my workflow 
manager telling workflow manager to start a workflow. But, the workflow could 
take a long time to run depending on how many files are available to be 
processed at that time. If the workflow takes longer than an hour to complete, 
the cron job is going to send another event to workflow manager telling it to 
start the workflow again. But I don't want it to start the workflow again if 
the previous workflow hasn't completed yet. It's perfectly OK for workflow 
manager to ignore that second request to start the workflow again and just wait 
for the next event to be sent by the cron job.

I don't want to reinvent the wheel. Has anyone already done something this?  
I've looked into the workflow preconditions, and I created a 
WorkflowStatusCondition class to use as a precondition. But, I can't tell if it 
is possible to check the status of the first workflow instance from within a 
WorkflowConditionInstance object in a second workflow instance.

Does anyone know how I would do that?

Val


Valerie A. Mallder

New Horizons Deputy Mission System Engineer
The Johns Hopkins University/Applied Physics Laboratory
11100 Johns Hopkins Rd (MS 23-282), Laurel, MD 20723
240-228-7846 (Office) 410-504-2233 (Blackberry)

Reply via email to