10-26-2017 11:20 AM
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="bpmercentComplete" />
<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.
10-27-2017 05:28 AM
The fields bpmercentComplete, 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?
10-27-2017 09:31 AM
Thank you for response. What do you mean that bpmercentComplete, 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
10-27-2017 11:49 PM
Have you tried the form config without those properties?
I mean something like:
<field-visibility>
<show id="cm:name" />
<show id="packageItems"/>
</field-visibility>
10-30-2017 07:44 AM
I have tried it of course. It was first idea.
11-01-2017 09:15 AM
Can you share your full share-config-custom.xml file?
11-02-2017 05:58 AM
It is. Only <alfresco-config> is missing.
Explore our Alfresco products with the links below. Use labels to filter content by product module.