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");