AnsweredAssumed Answered

Display initiator on UI

Question asked by mitschi on Feb 1, 2010
Hello,

I have a problem displaying the initiator of a workflow. I tried to get the initiator process variable (it exists, doesn't it?) but i never get any data through that. In the web-client-config-custom.xml i just wrote:

<show-property name="rso:initiator" display-label="Initiator"/>

and in order to that I tried to set that variable through a task-create event in the processdefinition.xml:

 <task name="rso:decisionTask" swimlane="reviewer">
            <event type="task-create">
              <script>
                 taskInstance.initiator = initiator;
              </script>
          </event>
        </task>

Because this configuration didn't work at all, I tried a much simpler case: I just wanted to set a simple integer value with same strategy:

Processdefinition:
 <task name="rso:decisionTask" swimlane="reviewer">
            <event type="task-create">
              <script>
                 taskInstance.test = 5;
              </script>
          </event>
        </task>

web-client-config-custom.xml:

<show-property name="rso:test" display-label="Test"/>

and finally workflowModel:

      <type name="rso:decisionTask">
         <parent>bpm:workflowTask</parent> 
         <properties>
            <property name="rso:test">
               <type>d:int</type>
            </property>
         </properties>
         <mandatory-aspects>
            <aspect>rso:gleittagAspect</aspect>
         </mandatory-aspects>
      </type>

I never get that property visible in the UI. :(
Now my question is what i'm doing wrong or am  i completly on wrong path to solve such a problem?

Thanks for helping,
Mitschi

Outcomes