Skip to main content

EVENTEXTRA

EVENTEXTRA( tag )

Return:EVENTEXTRA returns a single string value.

The EVENTEXTRA function returns the contents of the tag from the XML text in the EVENT function's second parameter.

Example:

doMyService := FUNCTION
  OUTPUT('Did a Service for: ' + 'EVENTNAME=' + EVENTNAME);
  NOTIFY(EVENT('MyServiceComplete',
               '<Event><returnTo>FRED</returnTo></Event>'),
    EVENTEXTRA('returnTo'));
  RETURN EVENTEXTRA('returnTo');
END;

doMyService : WHEN('MyService');

// and a call
NOTIFY('MyService',
       '<Event><returnTo>'+WORKUNIT+'</returnTo></Event>');
WAIT('MyServiceComplete');
OUTPUT('WORKUNIT DONE')

See Also: EVENT, EVENTNAME, CRON, WHEN, WAIT, NOTIFY