test_class.declarator: RESOURCES_DIR = "src/test/resources/bpmn4tosca"
test_class.modifier: protected static
test_class.original_string: protected static String RESOURCES_DIR = "src/test/resources/bpmn4tosca";
test_class.type: String
test_class.var_name: RESOURCES_DIR
test_class.file: org.eclipse.winery.bpmn4tosca.converter.tobpel/src/test/java/org/eclipse/winery/bpmn2bpel/BPMN4Tosca2BpelTest.java
test_class.identifier: BPMN4Tosca2BpelTest
test_case.body: @Test
      public void testUndefinedEndpointGateway()
          throws ParseException, PlanWriterException, MalformedURLException, URISyntaxException {
          URI srcUri = Paths.get(RESOURCES_DIR, "bpmn4tosca.undefinedEndpoint.json").toUri();
          URI targetUri = Paths.get(RESOURCES_DIR, "managementplan.undefinedEndpoint.zip").toUri();
          BPMN4Tosca2BpelTest.class.getResource(".");
          Bpmn4Tosca2Bpel transformer = new Bpmn4Tosca2Bpel();
          transformer.transform(srcUri, targetUri);
      }
test_case.class_method_signature: BPMN4Tosca2BpelTest.testUndefinedEndpointGateway()
test_case.full_signature: @Test public void testUndefinedEndpointGateway()
test_case.identifier: testUndefinedEndpointGateway
test_case.invocations: toUri get toUri get getResource transform
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUndefinedEndpointGateway()
focal_class.declarator: FILE_NAME_PLAN = "management_plan.bpel"
focal_class.modifier: public static final
focal_class.original_string: public static final String FILE_NAME_PLAN = "management_plan.bpel";
focal_class.type: String
focal_class.var_name: FILE_NAME_PLAN
focal_class.declarator: FILE_NAME_PLAN_WSDL = "management_plan.wsdl"
focal_class.modifier: public static final
focal_class.original_string: public static final String FILE_NAME_PLAN_WSDL = "management_plan.wsdl";
focal_class.type: String
focal_class.var_name: FILE_NAME_PLAN_WSDL
focal_class.declarator: FILE_NAME_INVOKER_WSDL = "invoker.wsdl"
focal_class.modifier: public static final
focal_class.original_string: public static final String FILE_NAME_INVOKER_WSDL = "invoker.wsdl";
focal_class.type: String
focal_class.var_name: FILE_NAME_INVOKER_WSDL
focal_class.declarator: FILE_NAME_INVOKER_XSD = "invoker.xsd"
focal_class.modifier: public static final
focal_class.original_string: public static final String FILE_NAME_INVOKER_XSD = "invoker.xsd";
focal_class.type: String
focal_class.var_name: FILE_NAME_INVOKER_XSD
focal_class.declarator: FILE_NAME_DEPLOYMENT_DESC = "deploy.xml"
focal_class.modifier: public static final
focal_class.original_string: public static final String FILE_NAME_DEPLOYMENT_DESC = "deploy.xml";
focal_class.type: String
focal_class.var_name: FILE_NAME_DEPLOYMENT_DESC
focal_class.declarator: DIR_NAME_TEMP_BPMN4TOSCA = "bpmn4tosca"
focal_class.modifier: public static final
focal_class.original_string: public static final String DIR_NAME_TEMP_BPMN4TOSCA = "bpmn4tosca";
focal_class.type: String
focal_class.var_name: DIR_NAME_TEMP_BPMN4TOSCA
focal_class.declarator: LOGGER = LoggerFactory.getLogger(Bpmn4Tosca2Bpel.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(Bpmn4Tosca2Bpel.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.file: org.eclipse.winery.bpmn4tosca.converter.tobpel/src/main/java/org/eclipse/winery/bpmn2bpel/Bpmn4Tosca2Bpel.java
focal_class.identifier: Bpmn4Tosca2Bpel
focal_class.class_method_signature: Bpmn4Tosca2Bpel.transform(URI srcBpmn4ToscaJsonFile, URI targetBPELArchive)
focal_class.full_signature: public void transform(URI srcBpmn4ToscaJsonFile, URI targetBPELArchive)
focal_class.identifier: transform
focal_class.modifiers: public
focal_class.parameters: (URI srcBpmn4ToscaJsonFile, URI targetBPELArchive)
focal_class.return: void
focal_class.signature: void transform(URI srcBpmn4ToscaJsonFile, URI targetBPELArchive)
focal_method.body: public void transform(URI srcBpmn4ToscaJsonFile, URI targetBPELArchive) throws ParseException, PlanWriterException {
  		//LOGGER.debug("Transforming ");
  
  		Bpmn4JsonParser parser = new Bpmn4JsonParser();//TODO To singleton
  		/* Create object representation of Json */
  		ManagementFlow managementFlow = parser.parse(srcBpmn4ToscaJsonFile);
  
  		List<Path> planArtefactPaths = new ArrayList<Path>();
  		try {
  			Path tempPath = FileUtil.createTempDir(DIR_NAME_TEMP_BPMN4TOSCA);
  
  			BpelPlanArtefactWriter writer = new BpelPlanArtefactWriter(managementFlow);
  
  			String plan = writer.completePlanTemplate();
  			planArtefactPaths.add(FileUtil.writeStringToFile(plan, Paths.get(tempPath.toString(), FILE_NAME_PLAN)));
  
  			String planWsdl = writer.completePlanWsdlTemplate();
  			planArtefactPaths.add(FileUtil.writeStringToFile(planWsdl, Paths.get(tempPath.toString(), FILE_NAME_PLAN_WSDL)));
  
  			String invokerWsdl = writer.completeInvokerWsdlTemplate();
  			planArtefactPaths.add(FileUtil.writeStringToFile(invokerWsdl, Paths.get(tempPath.toString(), FILE_NAME_INVOKER_WSDL)));
  
  			String invokerXsd = writer.completeInvokerXsdTemplate();
  			planArtefactPaths.add(FileUtil.writeStringToFile(invokerXsd, Paths.get(tempPath.toString(), FILE_NAME_INVOKER_XSD)));
  
  			String deploymentDesc = writer.completeDeploymentDescriptorTemplate();
  			planArtefactPaths.add(FileUtil.writeStringToFile(deploymentDesc, Paths.get(tempPath.toString(), FILE_NAME_DEPLOYMENT_DESC)));
  
  			LOGGER.debug("Creating BPEL Archive...");
  			Path zipFilePath = FileUtil.createApacheOdeProcessArchive(Paths.get(targetBPELArchive), planArtefactPaths);
  			LOGGER.debug("Management plan zip file saved to " + zipFilePath.toString());
  		} catch (Exception e) {
  			throw new PlanWriterException(e);
  		} finally {
  			/* Delete created plan artifact files from temp directory */
  			try {
  				LOGGER.debug("Deleting temporary plan artefact files...");
  				FileUtil.deleteFiles(planArtefactPaths);
  			} catch (IOException e) {
  				throw new PlanWriterException(e);
  			}
  		}
  	}
focal_method.class_method_signature: Bpmn4Tosca2Bpel.transform(URI srcBpmn4ToscaJsonFile, URI targetBPELArchive)
focal_method.full_signature: public void transform(URI srcBpmn4ToscaJsonFile, URI targetBPELArchive)
focal_method.identifier: transform
focal_method.invocations: parse createTempDir completePlanTemplate add writeStringToFile get toString completePlanWsdlTemplate add writeStringToFile get toString completeInvokerWsdlTemplate add writeStringToFile get toString completeInvokerXsdTemplate add writeStringToFile get toString completeDeploymentDescriptorTemplate add writeStringToFile get toString debug createApacheOdeProcessArchive get debug toString debug deleteFiles
focal_method.modifiers: public
focal_method.parameters: (URI srcBpmn4ToscaJsonFile, URI targetBPELArchive)
focal_method.return: void
focal_method.signature: void transform(URI srcBpmn4ToscaJsonFile, URI targetBPELArchive)