Skip to main content
Nintex Community Menu Bar

How to Use EventBus API to register custom code to catch other server event?

  • June 3, 2008
  • 2 replies
  • 20 views

Forum|alt.badge.img+2

Hi, 


In the SDK eventbus example :


customEvent = new EBAuthor.CustomEvent(0, "Test Schedule Event", "Description", scheduleID.ToString(), "OnScheduleExecute", (int)SourceCode.EventBus.Common.Enumerators.EventType.Scheduled_Event);


 


 using this code I can only handle the Scheduled Event.


can I regist a CustomEvent catch all the event in one process? such as


"Default Client Event"


"Default Server Event"


"Infopath Client Event"


 


For example: when a process instance add a new worklistitem,my customCode auto redeict/delegate it to other user or do some common logic.

2 replies

Forum|alt.badge.img+4
  • June 4, 2008

Hi Phoenix,


At this point it is not possible to catch "generic" events, though we are looking into ways to add more global events to the Event Bus.


Thanks,


Mike


Forum|alt.badge.img+2
  • Author
  • June 5, 2008

Hi MikeT,thanks for answer


But there is still some questions.


I can use the K2WorkSpace Custom Event Designer  to catch one ProcessActivity Started Event or Completed Event  to call my own dlls ,How to do it in a custom code?


For example: If I have 10 processes and each process have 10 activities in a K2 Server.  When all the process activity started or completed,use my own code to write some text in the k2 console.