Process start task form problem

cancel
Showing results for 
Search instead for 
Did you mean: 
pnature
Established Member

Process start task form problem

Hi.

I created process started with bpm:startTask but now change request come. I have to change starting form to something else. So I created new type in workflow-model.xml

    <types>
        <type name="sofa:startTask">
            <title>Start Sending Order for Approval</title>
            <parent>bpm:startTask</parent>
        </type>
    </types>

This type I used as formKey in my process

   <process id="sendingOrderForApprovalProcess" name="Sending Order for Approval" isExecutable="true">
       <startEvent id="startevent1" name="Start" activiti:formKey="sofa:startTask"></startEvent>

For this purpose I created new share project containing only share-config-custom.xml with form definition

    <config evaluator="string-compare" condition="activiti$sendingOrderForApprovalProcess">
        <forms>
            <form>
                <field-visibility>
                    <hide id="bpmSmiley TongueercentComplete" />
                    <hide id="bpm:status" />
                    <show id="cm:name" />
                    <show id="packageItems"/>
                </field-visibility>
                <appearance>                    
                    <field id="cm:name">
                      <control>
                         <control-param name="maxLength">255</control-param>
                      </control>
                    </field>
                </appearance>
            </form>
        </forms>
    </config>

When I choose start process Alfresco opens standard form.

I can see in the log invoking process

Generating form for item:

id = activiti$sendingOrderForApprovalProcess

But my form definition is not used. I am missing something somewhere.

6 Replies
afaust
Master

Re: Process start task form problem

The fields bpmSmiley TongueercentComplete, bpm:status and cm:name are generally irrelevant / not applicable to workflow start forms.

Is the share-config-custom.xml file deployed correctly? Do you have other configuration in it that gets used?

pnature
Established Member

Re: Process start task form problem

Thank you for response. What do you mean that bpmSmiley TongueercentComplete, bpm:status are not applicable. I can see them each time I start my workflow. I want to disable them. My config contains only this one evaluator. I have tried some other but no one of them works Smiley Sad

douglascrp
Advanced II

Re: Process start task form problem

Have you tried the form config without those properties?

I mean something like:

<field-visibility>
      <show id="cm:name" />
      <show id="packageItems"/>
</field-visibility>

pnature
Established Member

Re: Process start task form problem

I have tried it of course. It was first idea.

douglascrp
Advanced II

Re: Process start task form problem

Can you share your full share-config-custom.xml file?

pnature
Established Member

Re: Process start task form problem

It is. Only <alfresco-config> is missing.