AnsweredAssumed Answered

Classic workflow Task Notification

Question asked by arimu02 Employee on May 10, 2016
Latest reply on May 10, 2016 by arimu02

HI ALL

I want the notification when the classic workflow task will be transfer .

I done the below customization but its attached the event but notification is not going.

any suggestion.

 

Mod File

MODIFY wf assignee ON_POST_VAL chg_assg( ) 07 ;

 

 

 

Spel File

 

wf.assignee::chg_assg(...)
{
if(status!="WAIT" && !(is_null(assignee)))
{
object group_leader;
object attached_events_table_record;

send_wait(0, top_object(), "get_co_group");

if (msg_error()) {
logf(ERROR, "chg_assg error '%s'", msg[0]);
return;
}

logf(SIGNIFICANT,"I am inside the notification procedure for chg workflow task assignee");

//fetch the event details

group_leader = msg[0];
send_wait( 0, top_object(), "call_attr", "atev", "get_new_dob", NULL, NULL, group_leader);

attached_events_table_record = msg[0];
logf(SIGNIFICANT,"I am inside the notification procedure for chg workflow task assignee1");
// Now we init the record.
attached_events_table_record.obj_id = persistent_id;
logf(SIGNIFICANT,"I am inside the notification procedure for chg workflow task assignee2");
// attach wf event (multiple notification macro)
attached_events_table_record.event_tmpl = "evt:400152";

send_wait(0, group_leader, "checkin");
logf(SIGNIFICANT,"I am inside the notification procedure for chg workflow task assignee3");
if (msg_error()) {
   
  logf(ERROR, "chg_assg: Cannot create record in 'Attached_Events' table");
  }
else {
  logf(SIGNIFICANT, "chg_assg:  'Event is attached to wf '%d' ", id);
     }
}
}

 

 

 

LOGS

05/09 16:13:34.41 SERVER      spelsrvr             2420 SIGNIFICANT  wf_trans.spl     15 I am inside the notification procedure for chg workflow task assignee

05/09 16:13:34.42 SERVER      spelsrvr             2420 SIGNIFICANT  wf_trans.spl     23 I am inside the notification procedure for chg workflow task assignee1

05/09 16:13:34.42 SERVER     spelsrvr             2420 SIGNIFICANT  wf_trans.spl     26 I am inside the notification procedure for chg workflow task assignee2

05/09 16:13:34.45 SERVER     spelsrvr             2420 SIGNIFICANT  wf_trans.spl     31 I am inside the notification procedure for chg workflow task assignee3

05/09 16:13:34.47 SERVER     spelsrvr             2420 SIGNIFICANT  wf_trans.spl     37 chg_assg:  'Event is attached to wf '400729'

Outcomes