You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to simplify my java flow workflow by using groovy and glisten .
In my case , I have multiple activities interfaces, implementation of each resides in a different sub-system,. The workflow implementation uses proxy client for each implementation and orchestrates the workflows.
I have been trying to model this using Glisten using delegate WorkflowOperations. However, it can only take one type of activity.
I can create multiple objects for WorkflowOperations viz: WorkflowOperations, WorkflowOperations and so on. However, the different operations like waitFor would now would have to be called on individual objects.
Not sure if there is an easy way to model it using glisten.
The text was updated successfully, but these errors were encountered:
Yes, this is an issue I have been thinking about, but we haven't had to deal with directly yet as our activities and workflows match up one to one currently.
The multiple WorkflowOperations might work, but will probably have more problems with unit testing using the local implementation. I should really separate the activites out of the WorkflowOperations or make it a Map. Something to allow for multiple Activities.
One simple work around that should work is creating a new interface that extends all three current interfaces. Then you will need an implementation that delegates to the three impls. Using Groovy this can be done in a way that is quite minimal code. The nice thing about activity vs workflow impls is that activity impls are regular POJOs (or POGOs) with lifecycles that are managed by you.
I am trying to simplify my java flow workflow by using groovy and glisten .
In my case , I have multiple activities interfaces, implementation of each resides in a different sub-system,. The workflow implementation uses proxy client for each implementation and orchestrates the workflows.
e.g.
I have been trying to model this using Glisten using delegate WorkflowOperations. However, it can only take one type of activity.
I can create multiple objects for WorkflowOperations viz: WorkflowOperations, WorkflowOperations and so on. However, the different operations like waitFor would now would have to be called on individual objects.
Not sure if there is an easy way to model it using glisten.
The text was updated successfully, but these errors were encountered: