Hi Adempiere Community
Currently we have an approval (document) workflow to manage(review & approve) sale orders, so far it is working well (nodes, transitions) when the order submission is performend from the Web UI,It intercepts the sales order during the stattus changes and send approval notifications (email) once the order is approved.
However, now we require to create/submit those sale orders from the java API (not from the webui), then we created a MOrder as a normal (standard order) and then we already tried to use the usual “order.completeIt()” method to complete the order (we have done this before without workflow logic), but in this case thought the workflow process should intercept that order(email and so on), it doesn´t work with the order created by our java process.
uestions:
1 Do we nee need something else (config or methods) so the workflow logic (nemail notification and approval transition) works with our orders created from the java API ?
2 Is that is true, is there any existent java class in the adempiere branch or example that uses that simple logic to start/use a document workflow process for a similar case (order workflow) where everything is already defined within the active dictionary (transitions, email notifications), and we just want to use it from the java code ?
Thanks,