We would like to know if it's possible to skip a automatic activity programmatically.
'ActivitySkip' system action is only for Human Activity or a Wait Activity.Is there another action that can skip an automatic activity or (or can this be build) or is there a use-case where you can resume suspended process and skip current activity executing or stuck on?
Looking forward to hearing form you all :)Thanks in advance!
As you are asking about automatic activity, so one approach could be to develop a custom logic (may be If condition) in your automatic activity to check and, based on certain conditions or flags, decides whether to ignore or complete the business login as needed.
One problem, it’s hard to currently build a custom logic because the service whom we are integrated with has a complex backend system with a lot of business rules. Right now, we get an “connector error“ we suspended the process and when we get a “technical error” we re-throw an exception to keep the bpt as active with errors. We would like to be able to skip a suspended BPT process as sometimes when we hit resume the backend already processed the transaction. We can only terminate in this case which is not handy.
I read somewhere else that maybe setting a “wait” activity or a type of human activity to replace the suspended exception handling might be the best thing so that this activity can be skipped via e back-office screen… this is a possible solution but I don’t know if this is practical or not. Any thoughts?