Skip to main content
June 30, 2021
Question

Process model related issue

  • June 30, 2021
  • 31 replies
  • 0 views

Hi,

I have a Process model for HR approval. In the form I am capturing cancel and submit button values in a text rule input (buttonValues).

But when HR is cancelling the button the flow gets completed which I do not want to happen as the task not completed.

I want the flow to stay at the same position so that approver can again complete his task.

could someone please help me here how to achieve my goal?

Thanks

Faisal

    31 replies

    stewart.burchell
    June 30, 2021

    Hi Faisal

    When you select any button in a user interface you should pass a value related to the button selected from the interface into the Process Model. Immediately after the process model you should have an XOR gateway that tests that value and decides where the flow is routed to next.

    mikes0011
    Brainy
    June 30, 2021

    The functionality you're describing above is not the expected behavior of a "Cancel" button.  If I as a user launch an action or a related action, the first form would usually have a "Cancel" button which, when clicked, I would expect to end the process with no changes made.

    In your process, if one user clicks "Cancel" and ends the process, why wouldn't the expectation be that a different user can launch that action?  If it's something else, why do you have a "Cancel" button at all?

    The Expression Guru
    June 30, 2021

    Hi Mike/Stewart,

    May be I could not tell my issue in a proper way. 

    I am here describing full issues with the screen shots with comments and doubts. Could you help me?

    I have attached the same.[View:/cfs-file/__key/communityserver-discussions-components-files/62/Issue-with-Form-Cancel-button.docx:320:240]

    csteward
    June 30, 2021

    To add, there is no reason to Cancel a start form since no process has been created yet.  Remove that button and the user can navigate away if they do not wish to proceed.  "Cancel" is just a label for your buttonWidget which is submitting the form.

    For your XOR, if you do not want the path to change (always save data), why does the XOR exist?