<img height="1" width="1" style="display:none;" alt="" src="https://dc.ads.linkedin.com/collect/?pid=287945&amp;fmt=gif">

Morphing processes at run-time

Posted by FlowWright on Nov 1, 2019, 1:17:00 PM

Morphing processes at run-time is a complex feature within our workflow product that allows users to create Dynamic Sub-workflows.  FlowWright is currently one of the only products on the market that is able to do this.  The real world example below might sound familiar.

A Natural gas company, needs to have a workflow that tells meter readers to read what meters within a certain location (address), then the workflow needs to process the information from the meter read.  But, here's the problem, each location might have different number of gas meters.  A single family home will only have 1 gas meter, but a 4 unit apartment complex will have 4 meters.  So, how can you build a workflow process where until run-time of that process you won't know how many gas meters are there?  

Most of the time a workflow instance is an identical copy of the workflow definition, the process design is 1:1 where the workflow instance contains more run-time execution information.  But, given the above scenario,the structure of each workflow instance will be different because of the number of meters at each location. So, how do you solve this challenge? 

The solution is: Dynamic sub-workflow.  This feature within FlowWright will make the workflow instance morph at run-time based on the number of gas meters.  So, when the workflow definition is built, its defined with a single path using the "Dynamic sub-workflow" step, as shown below:

building a workflow process with dynamic sub-workflow

This workflow process is defined using a single "Read Meter" dynamic sub-workflow step, but at run-time the process will automatically morph to the following: (*using data assuming there are 4 gas meter reads)

process morphs at run-time based on run-time information

As you can see from the above diagram, at run-time the process has morphed based on the number of gas meters at the location.  Dynamic sub-workflow is a complex concept that  applies to specific use case scenarios.  FlowWright is able to handle this scenario very easily, only a next generation workflow product can do such morphing of workflow processes.

Have questions on how to implement Dynamic sub-workflows? Let's Talk.

New Call-to-action

Topics: dynamic workflow