I’m a newer user of cuba plateform, and for the moment can do everything with in less time than ever.
Now, i’m try to use BPM process to split my orignial form in several step.
Three parts compose my dreamed form and each part should be completed by different user.
After some search on the documentation i can’t find a way to do it.
Can you tell me is there is a way for that ?
Regards,
So i made some modification in the first bpm sample (Contact), to have to screen (edit and process).
After the first user task I change Standard form to ContractProcess (new view), and i got a exception :
Screen ‘ContractProcess’ is not defined
I can guess you type wrong screen id into bpm-form .xml file.
Sorry if i mislead you. As it sayed in docs - you need to fill screen id into forms name property (in .xml file that you register as formConfig).
You can find screen id in ‘properties’ tab into studio screen designer or in web-screens.xml file.
Ok, an other step passed.
Now, when I try to retrieve the UUID, this one is not replace by the value in params.
Do you know why ? Probably a mistake
After many test, I found a solution by inject ProInstance and use getEntity().getEntityId()
But after that I’m facing a new error :
GuiDevelopmentException: Can’t find action windowCommit. This may happen if you are opening an AbstractEditor-based screen by openWindow() method, for example from the main menu. Use openEditor() method or give the screen a name ended with ‘.edit’ to open it as editor from the main menu.
After many tests, I’m able to display the new form.
But, in my case it’s not exactly what I want to do.
Indeed, I don’t want to display a different form after user click on any button but at the beginning of each user task.
I try to explain :
From Contract Browser, click on Create (Cuba will display screen’s name contractEditorScreen_1), after the first user complete this form, he save the form and start the process (selecting controller or anything else)
The Controller user, will go to “process tasks” and open it. At this specific step, I need Cuba open an other screen with name contractEditorScreen_2 (This new editor will display fields from step 1 in readonly mode and one or more new fields form the same entity.
I hope to be more clear with that explanation.
Hi,
I believe that different forms for each task it is what you need if you want that implementation came from BPM Activity Engine.
If you want different approach - there is up to you. It can be some sort of checking entity state on editor opening (eg status == ‘Step 2’) / checking if user that opened it has a task to complete in buisness-process. But i thing this is: