Flow isn't updating value when called as subflow

Flow isn't updating value when called as subflow

Comments

  • I have a flow (image attached) which update the "completed" status of an assignment entity. I can see the data changed in report when this flow is executed manually by passing the assignmentId (via debug in Decisions studio). But, when called as a sub-flow in another flow, it fails to update the data. It doesnt throw any error but the data isnt changed as expected.

  • Hello,

    You can use Logging steps around your Flow to capture whats happening. Please refer [url=https://documentation.decisions.com/docs/logging-overview]https://documentation.decisions.com/docs/logging-overview[/url] for more information on this.

    Would you be able to export this Project so that I can take a closer look into this? Please refer [url=https://documentation.decisions.com/docs/exporting-and-importing-overview]https://documentation.decisions.com/docs/exporting-and-importing-overview[/url] for information on Exporting.

  • The following is in response to Wills reply email (sorry, I couldt find that reply in the forum):

    In the original flow, I have send-email steps on each path and it is confirmed that execution took the singular path at runtime. I just removed them for better readability when posting it.

    I was wondering whether it is something like a scope restriction in Decisions which I am not aware of (e.g. whatever changes made by the subflow is reverted back by the parent flow – like changes made in sub-routine to a parameter is lost when returned to caller-routine when the parameter was passed as a value not as a reference).
    [i]edited by kyaw kyaw htat on 8/2/2019[/i]

  • Hi kshitij, I am sorry that I cannot export the subflow and its caller flow due to privacy stuff (i.e. it is a project work). Regarding the use of logging step, I was using the send-email steps for the same purpose, and they were removed for better readability before posting it.

  • Hello, lets discuss your issue in more detail in as support ticket so we can better understand what you are looking for. I will go ahead and opened up a support ticket on your behalf and you will be notified through email once this tickets been created.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!