I want to create Flow Services dynamically. The idea is to create an empty FLOW service with defined inputs and outputs. For this purpose I created a Java service, and trying to use createService for the whole day now. It doesn’t really want to create the service though.
Namespace ns = Namespace.current(); NSPackage pkg = ns.getPackage("MyExamplePackage"); NSService svc = ns.createService(pkg, "myexamplepackage.flow:myDynamicService", 0);
MyExamplePackage.myexamplepackage.flow path exists. That would be another idea to create those also, but last time I created a package with ns.createPackate(NSName.create(packageName)) the integration server encountered a NullPointerException without any more information about the exception itself. For now I only try to create service stubs but the svc:NSService never gets created. There is no error message, exception but the service does not get created. I’ve tried several parameters for the createService with no luck.
Any idea how I can create a service with createService function?