excludedMethods.add("getLineNo");
}
public static Event createBPAFModel(BpelEvent bpelEvent)
{
Event target = null;
EventDetailMapping mapping = detailMapping.get(bpelEvent.getClass());
if(mapping!=null)
{
ProcessEvent source = (ProcessEvent)bpelEvent;
// base event data
target = new Event(false);
target.setTimestamp(bpelEvent.getTimestamp().getTime());
target.setProcessDefinitionID(source.getProcessId().toString());
target.setProcessName(source.getProcessName().toString());
//set default value for activity name
target.setActivityName("n/a");
// required for bpel2svg. See https://jira.jboss.org/browse/RIFTSAW-264
target.addData(new LineNumber(bpelEvent.getLineNo()));
if (source instanceof ProcessInstanceEvent) {
ProcessInstanceEvent instanceEvent = (ProcessInstanceEvent) source;
target.setProcessInstanceID(instanceEvent.getProcessInstanceId().toString());
}
//put the data as a property.
Tuple data = new Tuple();
data.setName("data");
data.setValue(getProcessEventAsString(source));
target.addData(data);
// can return null and thus invalidate the event
target = mapping.adoptDetails(target, source);
}