Question

How to shedule a Business Rule explicitly from Monitor Schedule in FSM

  • 25 April 2022
  • 2 replies
  • 102 views

Userlevel 3
Badge +7

I want to schedule a Business Rule explicitly from Monitor Schedule in FSM in a particular time on daily basis. Could you please guide how to achieve this?


2 replies

Userlevel 7
Badge +22

Hi @TDCMANIRUL ,

Simply what you can do is writing a xml update/insert/delete (change message) message on the schedule run message or monitor schedule message to make a  change on your primary table. Setup the frequency/time schedule of your scheduled job. Then based on that result (when the change is made), it will automatically fire the business rule logic. You need the change to be triggered in the business rule as input parameters.

i.e.: When the task.user_def1 is changed (this change is written as xml update message in the scheduled message), fire the logic in your business rule by making user_def1 as the input parameter

Userlevel 3
Badge +7

Hi @Saranga Amaraweera ,

Thanks for your reply. Yes, I can write the xml query directly in monitor schedule. But in my xml query I have expression which is not working in monitor schedule.

<where>
          <data_constraint>
            <constraint>
              <left_operand>person_skill.user_def_dttm1</left_operand>
              <operator>gt</operator>
              <right_operand>@expression[today()]</right_operand>
            </constraint>
          </data_constraint>
        </where>

Reply