Skip to main content
March 20, 2022
Question

candidate application form:

  • March 20, 2022
  • 3 replies
  • 0 views

Hii All

can anyone help me how to impliment this condition : User Should be able to Cancel the appliaction at any point of time unless its reviwed by HR.

    3 replies

    andrewh0007
    March 20, 2022

    This question is so broad as to be next to impossible to answer in a useful way.

    I personally would tackle this by allowing a "Cancel Application" related action when the `status` of the record equals the appropriate status' (eg. All the status' prior to being reviewed by HR).

    EDIT:

    With all of these solutions you may also need to consider race conditions and locking the record. Consider what happens to the record if the application is cancelled while HR is reviewing it.

    stefanhelzle0001
    Brainy
    March 20, 2022

    A related action is the way to go. Keep in mind that you might have to cancel active process instances. I suggest to add a "Receive Message" event to these models to gracefully wind down these instances. From the "Cancel" process, send a message to any active process related to the case.

    gopalk2865
    Participating Frequently
    March 20, 2022

    Hi, There is one approach already mentioned by [mention:e70b14ab0a7346dab1a7041b57706860:e9ed411860ed4f2ba0265705b8793d05] . One another thing you can do is ,have a button named "Revoke" or "Cancel" in the interface itself and in showWhen or disabled parameter provide a condition based on the status of application. If application is reviewed by HR then hide the button or just disable it.