Skip to main content
Solved

Multiple task creation based on request type

  • August 24, 2020
  • 1 reply
  • 163 views

Forum|alt.badge.img+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 

 

 

Best answer by AdrianEgley

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

View original

1 reply

AdrianEgley
Hero (Customer)
Forum|alt.badge.img+14
  • Hero (Customer)
  • 169 replies
  • Answer
  • August 24, 2020

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings