Custom Workflow - Custom Form

cancel
Showing results for 
Search instead for 
Did you mean: 
elboukhari
Active Member

Custom Workflow - Custom Form

Jump to solution

Hi,

I create a custom workflow.

If  my understand is right, my custom form MUST have a parent. 

In my case :

****Model.xml

<types>

<type name="scwf:submitMyCustomTask">
<parent>bpm:startTask</parent>
<properties>

....

But I need to hide some of the fields of startTask.

share-custom-config.xml

<config evaluator="string-compare" condition="activit$MyCustomActivit">
<forms>
<form>
<field-visibility>
<hide id="bpm:status" />

But it dosn't work !

I try to add :

<config evaluator="task-type" condition="bpm:startTask" replace="true">

...

<form>
<field-visibility>
<show id="message" />
<show id="taskOwner" />
<hide id="bpm:workflowPriority" />
<hide id="bpm:workflowDueDate" />
<show id="bpm:taskId" />
<hide id="bpm:status" />
<hide id="packageItems" />
<show id="bpm:sendEMailNotifications" />
</field-visibility>

Also dosn't work !!

1. Any one knows how to mask/hide/remove fields from parent task ?

2. Is there any way to NOT use parent task ?

Thanks a lot !

1 Solution

Accepted Solutions
elboukhari
Active Member

Re: Custom Workflow - Custom Form

Jump to solution

I resolve the problem like this 

<config evaluator="string-compare" condition="activit$MyCustomActivit" replace="true">

View solution in original post

3 Replies
hardik1512
Established Member II

Re: Custom Workflow - Custom Form

Jump to solution

In your custom form config, under <field-visibility> , try adding only those fields that you want to show using <show> tag.

For eg  <show id="xyz" />

elboukhari
Active Member

Re: Custom Workflow - Custom Form

Jump to solution

Thank you for u response.

I had tried it before, but it does not work.

elboukhari
Active Member

Re: Custom Workflow - Custom Form

Jump to solution

I resolve the problem like this 

<config evaluator="string-compare" condition="activit$MyCustomActivit" replace="true">