How to provide rejection reason when HR want to reject candidate Application

Certified Associate Developer

Hi All,

I have created a HR dashboard where a HR can pick any application in read only mode after that HR can Select and Reject candidate.

so in this when i am creating a related action for Select and reject so i can easily able to create a process model for HR to select candidate application but I am stuck at reject point because I need to give rejection reason to the applicant when they are going to reject by HR,

Below is the process model which i have created so anyone can help me for giving Rejection reasons to the applicant while rejecting and also tell me, When i will reject the candidate so rejected applications will be store in cloud Databases or it will delete the Candidate's applications from database.

           

  Discussion posts and replies are publicly visible

Parents
  • Hello ! you can store the values of the dropdown box as a rule input (ri!selection) and then in a sectionLayout you can spectify the reason and then save on clicking the button (in sectionLayout specify the condition- showWhen: ri!selection="Reject" this will show the section layout only when the value in dropdown box is reject. Then you can create the process model and map the process variables and use write to dse service, your data will be saved to the database as reject.

    a!sectionLayout(
      contents:{
        a!dropdownField(
          placeholder:"Choose application ",
          choiceLabels: {"Reject","Select"},
          choiceValues: {"Reject","Select"},
          value:ri!selection,
          saveInto: ri!selection
        ),
       a!sectionLayout(
         contents:{
           a!paragraphField(
             label:"Reason",
             instructions: "Add reason for application rejection",
             required: true,
             value:ri!reason,
             saveInto: ri!reason
           ),
           a!buttonLayout(
             primaryButtons: {
               a!buttonWidget(
                 label: "SAVE",
                 value: "SAVE",
                 saveInto: ri!buttonAction,
                 submit: true,
                 style: "PRIMARY"
               )
             },
             secondaryButtons: {
               a!buttonWidget(
                 label: "CANCEL",
                 value: "CANCEL",
                 saveInto: ri!buttonAction,
                 submit: true,
                 style: "NORMAL"
               )
             }
           )
         },
         showWhen: ri!selection="Reject"
       ) 
      }
    )

    I've used 3 rule inputs : ri!selection(for dropdown selection),   ri!reason(reason for rejection), ri!button(save values for button).

                                          

Reply
  • Hello ! you can store the values of the dropdown box as a rule input (ri!selection) and then in a sectionLayout you can spectify the reason and then save on clicking the button (in sectionLayout specify the condition- showWhen: ri!selection="Reject" this will show the section layout only when the value in dropdown box is reject. Then you can create the process model and map the process variables and use write to dse service, your data will be saved to the database as reject.

    a!sectionLayout(
      contents:{
        a!dropdownField(
          placeholder:"Choose application ",
          choiceLabels: {"Reject","Select"},
          choiceValues: {"Reject","Select"},
          value:ri!selection,
          saveInto: ri!selection
        ),
       a!sectionLayout(
         contents:{
           a!paragraphField(
             label:"Reason",
             instructions: "Add reason for application rejection",
             required: true,
             value:ri!reason,
             saveInto: ri!reason
           ),
           a!buttonLayout(
             primaryButtons: {
               a!buttonWidget(
                 label: "SAVE",
                 value: "SAVE",
                 saveInto: ri!buttonAction,
                 submit: true,
                 style: "PRIMARY"
               )
             },
             secondaryButtons: {
               a!buttonWidget(
                 label: "CANCEL",
                 value: "CANCEL",
                 saveInto: ri!buttonAction,
                 submit: true,
                 style: "NORMAL"
               )
             }
           )
         },
         showWhen: ri!selection="Reject"
       ) 
      }
    )

    I've used 3 rule inputs : ri!selection(for dropdown selection),   ri!reason(reason for rejection), ri!button(save values for button).

                                          

Children