* @throws IOException
* @throws ComponentRegistryException
*/
public void testPreInvoke() throws ComponentException, GraphException,
IOException, ComponentRegistryException {
Workflow workflow = createWorkflow();
WorkflowClient.createScript(workflow);
File workflowWSDLFile = new File(
"tmp/ADASInitializedWRFForecast-wsdl.xml");
XMLUtil.saveXML(workflow.getWorkflowWSDL().xml(), workflowWSDLFile);
File bpelFile = new File("tmp/ADASInitializedWRFForecast-bpel.xml");
XMLUtil.saveXML(workflow.getGpelProcess().xml(), bpelFile);
// Get the metadata for input.
XmlElement inputAppinfo = workflow.getInputMetadata();
if (inputAppinfo != null) {
// Parse the simple case.
// for (XmlElement element : inputAppinfo.requiredElementContent())
// {
// String tag = element.getName();
// String value = element.requiredText();
// logger.info(tag + " = " + value);
// }
}
// Get the input information
List<WSComponentPort> inputs = workflow.getInputs();
for (WSComponentPort input : inputs) {
// Show the information of each input.
// Name