Complex Event

The Complex Event enables you to write java code to trigger the process flow. Using complex event, you can:

  • Write your Java Logic to trigger a process flow
  • Specify a process flow to be triggered
  • Set context Variable of the process flow

Steps to create a Complex Event

  1. Click Configure > EVENTS > Complex.

  2. Click Create Complex Event

  3. Provide the name and description of the new Complex Event activity in the Name and Description text boxes.



  4. Write the java code in the Script text box. Click Help link (above Script text box) to view the sample code.

  5. Select the date on which Complex event will stop triggering in the Event Expiry Date. The date must be in MM/dd/yyyy format. Click the Calendar icon and select the required date from the calendar.
  6. Provide the expiry time from the Time drop-down list.
  7. Provide the time interval when the event checks the database Server in the Polling Frequency. Enter the digit in the Frequency field and select the unit of time, that is, seconds, minutes or hours from the Duration.

    We recommended minimum Polling Frequency to be more than 60 seconds.
  8. Expand Advanced Properties to view the advanced properties of Complex Event.



  9. Type the email id in the Notification Receiver Email-ID(s) (comma separated) to receive error emails related to this complex event.

  10. If you want to enable misfire handling for your complex event then select the Run Once option from the Action on Misfire Event drop-down list. If you do not wish to enable misfire handling for your file event then select the Ignore Misfire option.

    The Run Once option will run only one collective instance of all the misfires for a particular event. Whereas the Ignore Misfire option will not run a misfired event.
  11. Select the Project from drop-down list of Project.

  12. Click Save.