Starting a Process from a SAIL interface and chaining

Certified Associate Developer

Hello There,

I have a SAIL form with a button that starts a small process model via a!startProcess().  This model is set to chain from start to finish however the button is returning the "onSuccess" condition before the process instance completes. 

However, when I use the exact same parameters on a SAIL form with a!startProcessLink (ie: same values for the ProcessModel and Parameters arguments) the process instance chains as expected and does not return until the instance is complete.

I am depending on this background process to update data and then fetching the updated results on the SAIL form inside a with()

Is this discrepancy the expected behavior? 

 

A couple notes:

  • The documentation says that both calls should respect process chaining
  • We are running on 18.1 however there is no mention of a related bug in any of the subsequent release notes (18.2 or the hotfixes)

  Discussion posts and replies are publicly visible

Parents
  • Hello Jpheh,

    I have done that chaining using starProcessLink and it works as expected all the time. The start process definitely will no respect the activity chaining.

    I would recommend you to make the following tests. It might not be your use case but it definitely should display the screens. Add a form with a button (nothing else) at two points of your process.assigned to the process initiators.

    Using the startProcessLink
    1) at the beginning (start processing)
    2) at the end for the process (before the process return

    I have some questions, are you from tempo? Or a site? Does all the process run without errors? How much time takes your process to execute ? Are all the tasks assigned to the same user there are some factors that can break the chain.

    José
Reply
  • Hello Jpheh,

    I have done that chaining using starProcessLink and it works as expected all the time. The start process definitely will no respect the activity chaining.

    I would recommend you to make the following tests. It might not be your use case but it definitely should display the screens. Add a form with a button (nothing else) at two points of your process.assigned to the process initiators.

    Using the startProcessLink
    1) at the beginning (start processing)
    2) at the end for the process (before the process return

    I have some questions, are you from tempo? Or a site? Does all the process run without errors? How much time takes your process to execute ? Are all the tasks assigned to the same user there are some factors that can break the chain.

    José
Children
No Data