Skip to main content

Hi,

I want to create multiple task for request automatically based on request type selected,I wrote XML business rule for request screen and able to create single task with below XML code.

<update_task>
  <task>
    <request_id>@request_id</request_id>
    <task_type>FIX</task_type>
    <insert is_initialized="false" />
  </task>
</update_task>

 

Can anyone please suggest how can I create multiple tasks.

 

Thanks

Ramya 

 

 

Hi Ramya,

I’d imagine the simplest way would be to place the <update_task> XML inside a <perform_batch>.

Example:

<perform_batch>

<update_task>
  <task>
    <request_id>@request_id</request_id>
    <task_type>FIX</task_type>
    <insert is_initialized="false" />
  </task>
</update_task>

<update_task>
  <task>
    <request_id>@request_id</request_id>
    <task_type>FIX</task_type>
    <insert is_initialized="false" />
  </task>
</update_task>

</perform_batch>


Depending if you want both tasks creating at the same time or not another option would be to use Process ID 10. We use this so the task creation triggers when another task is completed. Sometimes that can be a cleaner way and saves lots of tasks being open.

 

Ady


Reply