AnsweredAssumed Answered

Workflow task form

Question asked by mrgrechkinn on Oct 23, 2013
Latest reply on Oct 24, 2013 by mrgrechkinn
Hello, I have a question about workflow task form. I have a one root type model and a couple child, when I start workflow at first task I choose a model type, and in second task I want show fields related only to specific type.
Example:

My model


  <type name="foo:rootModel">
    <parent>cm:content</parent>
    <properties>
      <property name="foo:id">
        <type>d:int</type>
      </property>
    </properties>
  </type>
  <type name="foo:child1">
    <parent>cm:content</parent>
    <properties>
      <property name="foo:caramba">
        <type>d:text</type>
      </property>
    </properties>
  </type>
  <type name="foo:child2">
    <parent>cm:content</parent>
    <properties>
      <property name="foo:bar">
        <type>d:text</type>
      </property>
    </properties>
  </type>



So, I'm create an node with type specified in start task, and I should fill properties for this node at second task. How I can show fields related to current node

My second task type


  <type name="foowf:secondTask">
    <parent>bpm:activitiOutcomeTask</parent>
    <properties>
      <property name="foowf:id">
        <type>d:int</type>
      </property>
    </properties>
  </type>

  <aspect name="foowf:child1Apect">
    <parent>cm:content</parent>
    <properties>
      <property name="foowf:caramba">
        <type>d:text</type>
      </property>
    </properties>
  </aspect>
  <aspect name="foowf:child2Aspect">
    <parent>cm:content</parent>
    <properties>
      <property name="foowf:bar">
        <type>d:text</type>
      </property>
    </properties>
  </aspect>



I found that on form config if task type doesn't containts a property, it will not show. So I think I can add aspect in runtime to task type but I don't known how to do this.

<stront>How I can show/hide different properties by using one task type?? Or I should create a lot of task types for each node?</strong>

Outcomes