IBM Integration Bus, Version 10.0.0.17 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS


Renaming a message flow

Use the IBM® Integration API when developing message flow applications to rename message flows.

You can write code to rename a message flow by using the setName() method. In the following example, a message flow file called main.msgflow is renamed to mainGenerated.msgflow.
File msgFlow = new File("main.msgflow");
MessageFlow mf1 = FlowRendererMSGFLOW.read(msgFlow);
mf1.setName(mf1.getName()+"Generated");

Pattern authoring

The following example is the same as the previous example, but for pattern authoring:
MessageFlow mf1 = patternInstanceManager.getMessageFlow("MyFlowProject", "main.msgflow");
mf1.setName(mf1.getName()+"Generated");

bc31650_.htm | Last updated 2019-07-13 08:13:30