Solved

Multiple task creation based on request type

  • 24 August 2020
  • 1 reply
  • 146 views

Userlevel 4
Badge +7

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 

 

 

icon

Best answer by AdrianEgley 24 August 2020, 09:37

View original

1 reply

Userlevel 5
Badge +14

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