Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Process Manager (Stardust) » Inspect message transformation activity mappings at runtime
Inspect message transformation activity mappings at runtime [message #949486] Fri, 19 October 2012 02:48 Go to next message
Robert Emsbach is currently offline Robert EmsbachFriend
Messages: 186
Registered: October 2011
Location: Singapore
Senior Member

Is it possible to know the outcome of a message transformation activity in a subsequent activity? For instance to know that of a possible 100 fields in a structured data type, only 3 were mapped in a transformation ?


Re: Inspect message transformation activity mappings at runtime [message #949490 is a reply to message #949486] Fri, 19 October 2012 02:49 Go to previous message
Robert Emsbach is currently offline Robert EmsbachFriend
Messages: 186
Registered: October 2011
Location: Singapore
Senior Member

You can try something like this:
ServiceFactory sf = ServiceFactoryLocator.get("motu","motu");
QueryService qs = sf.getQueryService();
ProcessDefinition pdef = qs.getProcessDefinition("MTAProcess");
Activity activity = pdef.getActivity("Transform");
Application application = activity.getApplication();
if(application.getAllAttributes().keySet().contains("messageTransformation:TransformationProperty")) { //MTA
String[] fields = ((String)application.getAttribute("messageTransformation:TransformationProperty")).split("fieldMappings");
for(String field: fields) {
      if(field.contains("fieldPath")) {
        System.out.println(field.trim().split("fieldPath=")[1].split("\\s+")[0]); //print target of xform
      }
}
Previous Topic:Migration of Participants
Next Topic:Unable to deploy stardust in weblogic 10.3.3
Goto Forum:
  


Current Time: Thu Apr 18 08:36:57 GMT 2024

Powered by FUDForum. Page generated in 0.01979 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top