Hi everyone
We have spent a couple of days trying to replicate a simple approval workflow that used to work in Adempiere 3.6.1 with regular purchase orders. We just inserted an approval node for purchase orders (total line > 1000) using Idempiere 1.0c and 2.0 workflow windows and editor,, but the approval steps and condition seems to be ignored at runtime and the process just finish without any suspension as required.
Please notice:
1. We have simplified the test case to the minimum functionality to show you the details with the GardenWorld environment,
2. We have already replicated the test case in the
https://demo.idempiere.com/webui/index.zul environment so you can take a look and compare with the process_requistion template (for us they have the same info)
3. We have used the the same user: GardenAdmin during all the worflow process definition and customization, so the notification, user and role approval fields have been tested with the demo workflow (process_requisition)
4. Following Carlos' suggestions included on previous threads of this forum, we have already analized the process requisition (workflow) available in GardenWorld and that works. (condition, notification and approval workflow)
5. We have already implemented the same functionality on Adempiere 3.6.1 before without these weird issues,
6. We already double checked the suggestions/checklist from the available books of adempiere 3.4 and compiere,
where we just created:
- a new node: order approval
action: User Choice
column: IsApproved_Approved
- a new node transition from the doc_prepare to the new order_approval with a condition: TotalLines_Total Lines > 100
- new node transtion from order_approval to doc_complete
When we tried to test it (creating a new purchase order) there is no approval process, and the order is just completed (workflow ignored)
During the workflow modeling we saw some weird behaviurs/potential bugs:
1. The workflow editor doesn´t show our node transition condition (TotalLines_Total Lines > 100) within the process_order, but with the process_request (demo) we can see it . It looks is ignoring the new conditions perhaps ?
2. Once the condition for a node transition is defined,, and you close the windows and tabs, and you want to edit it again, it is not possible, and we just got a error message: Please select the parent tab fist (no way to edit), you just have to remove it and create it again..
Our preliminary observations:
- The workflow engine is ignoring new conditions created with idempiere (created manually or with the workflow editor they are ignored during the runtime), though the demo works, perhaps because is old data was migrated manually, but any new workflow with a new basic approval processed like this are not working on runtime.
We tested these scenarios first in our local Idempiere (1.0c) and we also replicated the same behavour with the demo environment (Idempiere 2.0 I guess)
Any suggestions, are we missing something else ?
is it really a bug report it in Jira ... ?
Regards
Pedro Rozo