Introduction
This page is intended to provide a guide to quickly start using the Workflow2
Getting Started
To start using the Workflow2, do the following:
Modify workflow.properties
Verify that the workflow.properties file has the following:
# wengine properties # define workflow prioritizer class to use for sorting workflow tasks org.apache.oodt.cas.workflow.wengine.prioritizer=org.apache.oodt.cas.workflow.structs.FILOPrioritySorter org.apache.oodt.cas.workflow.wengine.taskquerier.waitSeconds=2 # the maximum number of threads to be used by the asynchronous engine runner org.apache.oodt.cas.workflow.engine.asynchronous.runner.num.threads=25
You'll need those properties at a minimum.
Then, at the top of your file, select the following:
# workflow repository factory workflow.repo.factory = org.apache.oodt.cas.workflow.repository.PackagedWorkflowRepositoryFactory # workflow engine factory workflow.engine.factory = org.apache.oodt.cas.workflow.engine.PrioritizedQueueBasedWorkflowEngineFactory # engine runner factory workflow.wengine.runner.factory=org.apache.oodt.cas.workflow.engine.runner.AsynchronousLocalEngineRunnerFactory
Remember for your packaged workflow repo to set:
# wengine-style packaged workflow repo properties org.apache.oodt.cas.workflow.wengine.packagedRepo.dir.path = /path/to/wengine/workflow/files
And to define your wengine lifecycle:
org.apache.oodt.cas.workflow.lifecycle.filePath=/usr/local/workflow/policy/wengine/wengine-lifecycle.xml
FAQ
Q. Can I use Workflow1 Policy with Workflow2?
A. Yes. Workflow1 policy is fully backwards compatible.
Q. Are their some sample set of policy files in the Workflow package?
A. Yes. For Workflow1 Policy, click here. For Workflow2 Policy, click here.
Q. Can I use Workflow1 policy to define parallel tasks in my Workflow?
A. No. Use Workflow2 Policy in order to do this.
Q. What's Workflow2 all about and how can I find out more information about it?
A. We have an extensive Workflow2 User Guide on our wiki page. It can be found here