cancel
Showing results for 
Search instead for 
Did you mean: 

Button form

midoscofield
Champ in-the-making
Champ in-the-making
Hello,

I want customize buttons of my form in a task in my workflow.Is it possible?
which is the file that contain buttons's details of form-task (buttons like Rejected,Approved..)

thanks in advance
1 REPLY 1

darkredd
Star Contributor
Star Contributor
Hi,

In your share-config-custom.xml, that's where you define your form components. Then in your workflowModel.xml file, you define the list of buttons you want that are associated with your task and form definition.
Here is an example from the workflowModel.xml file

<blockcode><type name="approvalTask">
         <title>Approval Task</title>
         <parent>bpm:activitiOutcomeTask</parent>
         <properties>
            <property name="approvalOutcome">
               <type>d:text</type>
               <default>Not Approved</default>
               <constraints>
                  <constraint name="approvalOutcomeOptions" type="LIST">
                     <parameter name="allowedValues">
                        <list>
                           <value>Approved</value>
                           <value>Not Approved</value>
                        </list>
                     </parameter>
                  </constraint>
               </constraints>
            </property>
         </properties>
         <overrides>
            <property name="bpmSmiley TongueackageActionGroup">
               <default>add_package_item_actions</default>
            </property>
            <property name="bpmSmiley TongueackageItemActionGroup">
               <default>read_package_item_actions</default>
            </property>
         </overrides>
         <mandatory-aspects>
            <aspect>approver</aspect>
         </mandatory-aspects>
</type></blockcode>

Hope that helps.

Regards