AnsweredAssumed Answered

How to dynamically show/hide some Options in Workflow Form

Question asked by satheeshkumar on May 5, 2015
Hi All,

I have a custom workflow, in that workflow there is a Review Task, where the reviewer can Approve/Reject.
If the user select Approve option , then additional deployment options should be shown to the user, say deploy to QA(Yes/NO), if the user select "yes" then UAT deployment option should be shown like deploy to UAT(Yes/No).

In case if the user selected the review option to be Reject, then the Deploy options should not be shown to the user, is there any way we can dynamically show/hide the additional options like the scenario I told here.

In my case the additional options are (Deployed to QA and Deployed to UAT).

My custom Workflow model for the Review Task is shown below,


<type name="hcwf:activitiReviewTask">
    <parent>bpm:activitiOutcomeTask</parent>
    <properties>
        <property name="hcwf:reviewOutcome">
            <type>d:text</type>
            <default>Reject</default>
            <constraints>
                <constraint type="LIST">
                    <parameter name="allowedValues">
                        <list>
                            <value>Approve</value>
                            <value>Reject</value>
                        </list>
                    </parameter>
                </constraint>
            </constraints>
        </property>
        <property name="hcwf:autoDeployToQA">
            <type>d:text</type>
            <default>Yes</default>
            <constraints>
                <constraint type="LIST">
                    <parameter name="allowedValues">
                        <list>
                            <value>Yes</value>
                            <value>No</value>
                        </list>
                    </parameter>
                </constraint>
            </constraints>
        </property>
        <property name="hcwf:autoDeployToUAT">
            <type>d:text</type>
            <default>No</default>
            <constraints>
                <constraint type="LIST">
                    <parameter name="allowedValues">
                        <list>
                            <value>Yes</value>
                            <value>No</value>
                        </list>
                    </parameter>
                </constraint>
            </constraints>
        </property>
        <property name="hcwf:autoDeployToPROD">
            <type>d:text</type>
            <default>No</default>
            <constraints>
                <constraint type="LIST">
                    <parameter name="allowedValues">
                        <list>
                            <value>Yes</value>
                            <value>No</value>
                        </list>
                    </parameter>
                </constraint>
            </constraints>
        </property>
    </properties>
    <mandatory-aspects>
      <aspect>hcwf:requiredFields</aspect>
   </mandatory-aspects>
</type>

Outcomes