Skip to main content
Solved

Condition check


PinmayaK
Sidekick (Partner)
Forum|alt.badge.img+9

Can anyone please suggest me is there anyway where we can write conditional statement in our XML code.Like if conditions or if else condition i want to write in my XML code.Is it possible to write the conditions in XML code?

My scenario is comparing tasks which are more than 3 days in  queue but not closed needs to be closed automatically with the help of scheduled process.

Best answer by Lee Pinchbeck

Hi Pinmaya,

You can create your own business rule if an existing one does not fit. If you are not familiar with how to do this I would suggest reading the available training documentation and potentially arranging for specific Business Rule training. It is a very good idea to get a full understanding of the business rule functionality delivered from an expert in the area as it is a very versatile area of the system.

To check the day you would just need to select a field from the task that contains the date you wish to compare against and then put the condition in as comparing it to todays date. If such a field does not exist you can use a user_def field and another business rule to complete the field with the date at the relevant time. As you can see this would then be a chain of business rules which can then get a little complicated which is why I would suggest the Business Rule general training first so you have a good understanding going in.

Kind regards,

 

Lee Pinchbeck

View original
Did this topic help you find an answer to your question?

4 replies

Lee Pinchbeck
Ultimate Hero
Forum|alt.badge.img+24

Hi,

This sounds like you may be better off using the Business Rule functionality to check the conditions and then, if they are met, set the output of the Business Rule as your XML to close the subject task. Rather than trying to assess the conditions in the XML itself.

Kind regards,

Lee Pinchbeck


PinmayaK
Sidekick (Partner)
Forum|alt.badge.img+9
  • Author
  • Sidekick (Partner)
  • 25 replies
  • May 12, 2020

Thanks Lee,

I am not sure but Can you please suggest me which business rule will be ideal for this kind of scenario.

because we need to compare the days.

Regards,

Pinmaya


Lee Pinchbeck
Ultimate Hero
Forum|alt.badge.img+24
  • Ultimate Hero
  • 1219 replies
  • Answer
  • May 12, 2020

Hi Pinmaya,

You can create your own business rule if an existing one does not fit. If you are not familiar with how to do this I would suggest reading the available training documentation and potentially arranging for specific Business Rule training. It is a very good idea to get a full understanding of the business rule functionality delivered from an expert in the area as it is a very versatile area of the system.

To check the day you would just need to select a field from the task that contains the date you wish to compare against and then put the condition in as comparing it to todays date. If such a field does not exist you can use a user_def field and another business rule to complete the field with the date at the relevant time. As you can see this would then be a chain of business rules which can then get a little complicated which is why I would suggest the Business Rule general training first so you have a good understanding going in.

Kind regards,

 

Lee Pinchbeck


PinmayaK
Sidekick (Partner)
Forum|alt.badge.img+9
  • Author
  • Sidekick (Partner)
  • 25 replies
  • May 12, 2020

Thanks Lee,

Definitely i will go through these documents one more time and thanks a lot for your response and providing me the solution.

Kind regards,

Pinmaya 


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