conductor icon indicating copy to clipboard operation
conductor copied to clipboard

JSON workflow DSL

Open dileepkeely opened this issue 8 years ago • 2 comments

Please suggest: Referring to kitchen sink example, I came to know that the WORKFLOW tht we define as a JSON i.e "kitchensink.json" is implemented in ConductorServer.java like below:

InputStream stream = Main.class.getResourceAsStream("/kitchensink.json");
		client.resource("http://localhost:" + port + "/api/metadata/workflow").type(MediaType.APPLICATION_JSON).post(stream);

Please let me know for a PRODUCTION environment, where should we define and use the JSON workflow DSL.

dileepkeely avatar Aug 03 '18 18:08 dileepkeely

@dileepkeely That code is getting the data from the kitchensink.json file and calling the api to register the workflow definition. In production you could do the same using the client within the project or through curl. The kitchensink.json file is a valid workflow definition so you could use it there as well.

I don't recommend to load the sample in production as part of the starting process though, as the population of metadata would be something you do separately. Does it help?

josedab avatar Aug 16 '18 23:08 josedab

Thanks @josedab for your response. @dileepkeely As suggested, the kitchensink workflow is meant to be used as an example only. For production flows, please use the metadata APIs here to register your JSON-DSL based workflow and task blueprints with the conductor server.

apanicker-nflx avatar Mar 02 '19 03:03 apanicker-nflx