slist_iter(action, action_t, action_set, lpc2, xmlNodePtr xml_action = action2xml(action); xmlAddChild(xml_action_set, xml_action); ) xmlAddChild(*graph, xml_action_set);
if(action->optional) { continue; } else if(action->runnable == FALSE) { continue; }  syn    = create_xml_node(*graph, "synapse"); set    = create_xml_node(syn, "action_set"); in     = create_xml_node(syn, "inputs");  xml_action = action2xml(action); xmlAddChild(set, xml_action);  slist_iter( wrapper,action_wrapper_t,action->actions_before,lpc2,  switch(wrapper->strength) { case pecs_must_not: case pecs_ignore:  break; case pecs_startstop: if(wrapper->action->runnable == FALSE){ break; }  case pecs_must: input = create_xml_node(in, "trigger");  xml_action=action2xml(wrapper->action); xmlAddChild(input, xml_action); break; }  );
stage8(GListPtr action_sets, xmlNodePtr *graph){	int lpc = 0;	xmlNodePtr xml_action_set = NULL;	*graph = create_xml_node(NULL, "transition_graph");/* errors...	slist_iter(action, action_t, action_list, lpc,		   if(action->optional == FALSE && action->runnable == FALSE) {			   print_action("Ignoring", action, TRUE);		   }		);*/	slist_iter(action_set, GList, action_sets, lpc,	           int lpc2;		   crm_verbose("Processing Action Set %d", lpc);		   xml_action_set = create_xml_node(NULL, "actions");		   set_xml_property_copy(			   xml_action_set, XML_ATTR_ID, crm_itoa(lpc));		   slist_iter(action, action_t, action_set, lpc2,			      xmlNodePtr xml_action = action2xml(action);			      xmlAddChild(xml_action_set, xml_action);			   )		   xmlAddChild(*graph, xml_action_set);		);	print_xml_formatted(*graph, "created action list");		return TRUE;}