get_workflow

Document created by Gutis Champion on Dec 9, 2015
Version 1Show Document
  • View in full screen mode

SPEL API methods

get_workflow

 

Gets number of tasks attached to object

 

Definition:

get_workflow( string );

string - persistent_id of the object chg,iss. No support for cr workflows.

 

working example:

send_wait(0, top_object(), "call_attr", "api", "get_workflow", "chg:400262");
if (msg_error()) {
printf("Error %s",msg[0]);
}
else
  {
  int i;
  for (i=0;i<msg_length();i++) {
   printf("msg[%d]: '%s'", i, msg[i]);
   }
  }
//output:
//msg[0]: ''msg[1]: '7'
1 person found this helpful

Attachments

    Outcomes