Job Tree Example Flow Chart

Job Tree Example Flow Chart

This job tree example shows how to create different jobs in different branches of the tree of jobs. Jobs are stored in a hierarchical flow chart namespace, which provides a natural mechanism for organizing and naming jobs.

Running the Example

  1. Start a Flux engine by running the start-unsecured-flux-engine script from the Flux installation directory.
  2. Once you have a Flux engine running, open the Flux Designer by running the flux-designer script from the Flux installation directory.
  3. Create a job called /my job in the Designer. Create some sort of dummy flow chart that can be verified and exported successfully; for example, a flow chart that simply contains a timer trigger that flows into a console action. Export the dummy flow chart to the engine created earlier.
    If you monitor your flow charts in the Operations Console, you should see a flow chart named "/my job".
  4. Create another simple flow chart that is deeper in the flow chart namespace. Call it /my company/my department/my group/my other job.
    If you look at the Operations Console now, you will see a flow chart called "/my company/my department/my group/my other job /my job".
  5. Create another simple flow chart and let Flux generate the name for it. Name the flow chart simply /, indicating that it should be placed into the root of the job tree.
    If you monitor your jobs now, you will see:
    /<an automatically generated job name>
    /my company/my department/my group/my other job
    /my job
  6. Now create a job deeper in the job tree namespace and let Flux generate the name for the new job. Name the job /my company/.

        If you monitor your jobs now, you will see:

        /<an automatically generated job name>

        /my company/<an automatically generated job name>

        /my company/my department/my group/my other job /my job

        /my job

This behavior demonstrates how Flux stores jobs into a tree. You can provide exact names for your jobs, or you can have Flux generate a unique job name for you.

The slash symbol "/" is used to separate branches in the tree of jobs. Finally, if you intend to have Flux generate your flow chart name, the flow chart name you provide to Flux must have a trailing slash symbol.

 
 
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.