iiq version 8.4
Like i have created a custom quicklink with forms , workflows so the thing is that i want to get a success message after the submission of the form but how to do that
iiq version 8.4
Like i have created a custom quicklink with forms , workflows so the thing is that i want to get a success message after the submission of the form but how to do that
Please review this discussion thread for solution: Quicklink Form Submission message
Thanks,
Pallavi
there is http session entry which we need to write in quicklink
but i dont know where i need to add the httpsession inside workflow because of multiple steps , start , end is there
For e.g., if you are processing a plan then post that transition to the step where you can prepare the message to be shown based on the different outcomes of your plan processing.
Thanks,
Pallavi
so if i need the message after the submission of the form then where i need the httpsession
You can add a step after your form step that should look like this. You will also need to make sure you have this variable included in your workflow.
<Variable input="true" name="httpSession" transient="true"/>
<Step icon="Default" name="Show Form Submission Message" posX="320" posY="121">
<Script>
<Source>
import java.util.ArrayList;
import java.util.List;
import javax.faces.application.FacesMessage;
try {
List currentMessages = httpSession.getAttribute("sailpoint.web.PageCodeBase.sessionMessages");
FacesMessage myMessage = null;
myMessage = new FacesMessage("Your request form was submitted successfully.");
javax.faces.context.FacesContext fc = javax.faces.context.FacesContext.getCurrentInstance();
List myMessages = new ArrayList();
myMessages.add(myMessage);
httpSession.setAttribute("sailpoint.web.PageCodeBase.sessionMessages", myMessages);
} catch (Exception ex) {
}
</Source>
</Script>
<Transition to="Build Plan"/>
</Step>
check this out Display success message - #3 by kalyan_dev32