Monday, February 27, 2017

Event sub processes in Flowable 6

With the release of Flowable 6, we improved the support for event sub processes. In Flowable 5, the support for event sub processes is limited to the interrupting type. This means that if a signal event is triggered for an event sub process, the executions on the same scope are terminated. Let's look at a simple example process definition.

When a process instance is started, "Task 1" will be the active state of the process instance. When the signal start event of the event sub process is triggered, "Task 1" will be terminated and the event sub process is started and the current state of the process instance is "Additional task".

With Flowable 6 there's now also support for non-interrupting event sub processes. The only difference when designing the process definition is configuring the signal start event as not interrupting.
A non-interrupting start event is visually shown as a circle with a dashed line. If you would start a process instance for this process definition, again "Task 1" will be the active state of the process instance. But now, when the signal start event is triggered, "Task 1" will remain active, and an additional execution is created for the event sub process. Therefore, two user tasks will be active "Task 1" and "Additional task". 

Let's look at another example, that contains two event sub processes, one on the main process level and one nested inside a sub process.

When we deploy this process definition (as part of an app definition) to the Flowable Task application, we can test the process instance execution by clicking through the task application. Let's start a new process instance in the Flowable Task application and see "Task 1" being created. If you now query the REST API for active event subscriptions (on Tomcat with http://localhost:8080/flowable-task/process-api/runtime/event-subscriptions), you'll see the signal event from the event sub process on the main process level being available. 

We could trigger the signal start event, but let's complete "Task 1" first. Now "Sub task 1" is the active task and if you do another event subscription query, you'll see another event subscription has become active. Let's trigger the nested event sub process signal and validate if the non-interrupting behaviour works as expected.

With a REST client like Postman you can do a PUT request to http://localhost:8080/flowable-task/process-api/runtime/executions/{executionId}, with a JSON body defining the signal action and the signal event name.


In this example, the execution id is "12518". But you can look up the execution id in the event subscription query result. When this signal event is triggered, the "Additional sub task" of the event sub process should be created, while keeping the "Sub task 1" task active as well. The process diagram in the Flowable task application should look like this:

Now let's complete the "Sub task 1" task and notice that "Task 2" is not created yet. First we have to complete "Additional sub task". When both tasks have been completed, "Task 2" is created. When executing the event subscription query again, you'll see that there's only the main process level signal event remaining. The nested sub process event subscription is deleted and not available anymore. After "Task 2" is completed, the process instance is also completed and no event subscriptions are available anymore.

Non-interrupting event sub processes provide a great addition to add more flexibility to your process definitions and to be able to create additional user tasks, or execute additional service tasks, in specific use cases. With Flowable 6.0.0, non-interrupting event sub processes on the main process level are support, but with the upcoming 6.0.1 release also nested non-interrupting event sub processes will be supported in the Flowable Engine.



26 comments:

  1. Thanks you for sharing this unique useful information content with us. Really awesome work. keep on blogging
    Oracle training in btm
    Oracle Online Training
    Oracle training in chennai
    Oracle training in Bangalore

    ReplyDelete
    Replies
    1. IEEE Final Year Project centers make amazing deep learning final year projects ideas for final year students Final Year Projects for CSE to training and develop their deep learning experience and talents.

      IEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation.

      corporate training in chennai corporate training in chennai

      corporate training companies in india corporate training companies in india

      corporate training companies in chennai corporate training companies in chennai

      I have read your blog its very attractive and impressive. I like it your blog. Digital Marketing Company in Chennai Project Centers in Chennai

      Delete
  2. Thanks for sharing this valuable information for us!!
    Keep up the good work
    Apponix Technologies

    ReplyDelete
  3. Thanks for your great and helpful presentation I like your good service. I always appreciate your post. That is very interesting I love reading and I am always searching for informative information like this.angular 4 training in chennai | angularjs training in chennai | .angularjs best training center in chennai | angularjs training in velachery |

    ReplyDelete
  4. Your website is very beautiful or Articles. I love it thank you for sharing for everyone. BPMN

    ReplyDelete
  5. Can you please provide example of event sub-process with message start event?
    sub-process should be triggered on message start event.

    ReplyDelete
  6. Munchkins cat breeder, we stand behind our guarantee, our customers, and our kittens! We go to great efforts to ensure that our kittens are healthy and socialized with an excellent demeanor that is native to the breed of each kitten.
    munchkin kittens for sale
    munchkin kittens
    munchkin for sale
    munchkin cats for sale
    ​munchkin kittens for sale near me, munchkin kitten price, munchkin kittens for sale in ohio, munchkin kittens for sale texas, munchkin kittens for sale nc, munchkin kittens for sale in iowa, munchkin kittens for sale in pa, munchkin kitten breeders, munchkin kitten for sale, munchkin kitten pictures, munchkin kitten gif, munchkin kitten houston, munchkin kitten for sale michigan, munchkin kitten adoption, munchkin kitten alabama, munchkin kitten arkansas, munchkin kitten australia, munchkin kitten adoption singapore, munchkin kitten albertamunchkin cat breeder, munchkin cat breeders near me, munchkin cats for sale near me, munchkin cat for sale near me, munchkin cat adoption, munchkin cat for sale, munchkin kittens for sale, munchkin cats for sale, standard munchkin kittens for sale, munchkin cat price, munchkin breeders, munchkin cats kittens, munchkin kitty for sale, munchkin cat for sale ohio, munchkin cat near me, munchkin cat for sale, munchkin cat for sale, baby munchkin cats, where to buy munchkin cats

    ReplyDelete
  7. savannah cat for sale
    savannah kitten
    f1 savannah cat for sale
    savannah cat price
    savannah cats for sale
    savannah kittens for sale, serval cat for sale, savannah cat for sale, savannah cats for sale, f1 savannah cat for sale, serval cat for sale, exotic cats for sale, f1 savannah cat, f4 savannah cat, cats for sale, savannah cats, Serval kittens for sale, savannah kittens for sale near me, savannah cats for sale near me, bengal kittens for sale, bengal kittens for sale near me.

    ReplyDelete
  8. Welcome to ROY'S FRENCH BULLDOG were we have been proudly breeding and showing quality AKC registered French bulldogs puppy since 2004. Our main focus is to produce show quality puppies with amazing personalities suitable for their forever family. We treat every Puppy with individualized care based on their needs to give them the best opportunities in life. Click "Available French Bulldog puppies" to check out our puppies and dogs looking for new homes.
    french bulldog puppies | french bulldog for sale | french bulldog puppy | french bulldog puppies for sale | french bulldogs near me | frenchie for sale | french bulldogs near me | merle french bulldog | lilac french bulldog | blue french bulldog | frenchie puppies | cream french bulldog | french bulldog breeders near me | brindle french bulldog
    french bulldog for sale
    french bulldog for sale
    french bulldog puppies for sale
    frenchie for sale
    french bulldog breeders near me

    ReplyDelete
  9. Here at Leslie's Pugsland Breeder, Our beautiful fawn pug has given birth to 4 healthy Pug puppies.
    She is our beloved family dog and this is her 1st litter.
    Both mum and dad are AKC registered with 5 gen pedigree certificate. Both from Top Champion bloodlines.Mum and Dad can be seen. Puppies have been wormed weeks 2,4,6,8 and will have had a flea preventative treatment before leaving us.
    They will have their vet check, 1st vaccinations and microchip.
    To view all available puppies and recent pictures, Search us in google as LESLIE'S PUGSLAND BREEDER or click on our website link bellow : https://pugslandbreeder.company.com/
    Pug puppies for sale
    pugs for sale
    pug puppies for sale
    pug puppies for sale near me
    Pug Puppies for sale | pug for sale near me | pug puppy for sale | pug puppy | pug for sale | pug puppies for sale in va | black pug puppies for sale

    ReplyDelete
  10. Learn Amazon Web Services for excellent job opportunities from Infycle Technologies, the Excellent AWS Training in Chennai. Infycle Technologies gives the most trustworthy AWS course in Chennai, with full hands-on practical training from professional trainers in the field. Along with that, the placement interviews will be arranged for the candidates, so that, they can meet the job interviews without missing them. To transform your career to the next level, call 7502633633 to Infycle Technologies and grab a free demo to know more

    ReplyDelete
  11. Fast-track your data analytics and machine learning career with guaranteed placement opportunities. Most extensive, industry-approved experiential learning program ideal for future Data Scientists.

    ReplyDelete
  12. This post is so useful and informative.Keep updating with more information.....
    Best Python Training In Bangalore
    Python Classes In Bangalore

    ReplyDelete