Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

How to write a Decision QPAC

Avatar

Former Community Member
Hi,

i am desigining a workflow where the the clicking of radio buttons / checkboxes / dropdownlists of the form needs to be verified whether clicked(selected) or not.when one radio button in the form is clicked it should route the for to a particular approver and if the other is clicked then route it to another approver and so on.is there any standard qpac or avoka qpac for this type of action or do we need to code as a custom qpac??
3 Replies

Avatar

Level 9
Hi Raghavakumar



You don't need a special QPAC.

There are two ways of making a decision based on information in a form:

1. Have several routes coming out of the User QPAC. Do not define any conditions in these routes. In the user QPAC, select "Add route data to form" (or something similar, can't remember exact wording). Then, in your form, the routes will automatically appear is a dropdown list next to the submit button. You must drop the standard workflow integration components into your form.



2. When you design your form, include an XML schema, and bind fields to your schema. Have several routes coming out of the User QPAC. In the user QPAC, do NOT select "Add route data to form". Double click each of the routes coming out of your form, and using the xpath expression editor, create a condition associated with each route. The first route whose condition evaluates to true will be the one that is followed.



If you need additional assistance, please email info-at-avoka.com.



Regards,

Howard

http://www.avoka.com

Avatar

Former Community Member
Just for clarity, #2 doesn't REQUIRE a schema be bound to a form. It just makes it easier if there is one since you can graphically select the node you want to evaluate in the expression builder. If there is no schema you can still type the xpath expression and it will work (assuming you type it out correctly).



Chris Trubiani

Adobe Systems

Avatar

Former Community Member
thanks sirs..thanks for ur ideas and suggestions.