CMDBuild Forum

Form widgets "Start workflow" doesn't work

Hi,

I’m trying to implement Form widget for a Class, so I can launch processes right from the Card. I know this feature was available in 2.x version, but I can’t get this to work on 3.1.1.

According to “Workfow Manual” section “4.1. Widget list” there’s widget to execute workflow named “Widget_startWorkflow”.
It’s possible to select “Start workflow” in “Gui custom” field when editing Class “Properties” tab. I have supplied WorkflowCode=“ConfNet” as the parameter for the widget.
When editing card itself the button with desired label appear on a card, however when clicking it, blank window opens, when I close it, I can see modal window “Process non found” error message. Nothing shows up in the logs to help with troubleshooting.

I’m not a Java guy, but from the source code it seems this part has changed in 3.x and I can’t find any reference to the “WorkflowCode” or “startWorkflow” in 3.x branch (was present in the 2.5 as part of StartWorkflowWidgetFactory). According to WidgetConst.java, there’s no definition for “startWorkflow” widget type:

WIDGET_TYPE_CREATE_MODIFY_CARD = “createModifyCard”,
WIDGET_TYPE_CALENDAR = “calendar”,
WIDGET_TYPE_MANAGE_EMAIL = “manageEmail”,
WIDGET_TYPE_LINK_CARDS = “linkCards”,
WIDGET_TYPE_CUSTOM_FORM = “customForm”,
WIDGET_TYPE_OPEN_ATTACHMENT = “openAttachment”,
WIDGET_TYPE_CREATE_REPORT = “createReport”;

Please advise how this should be done correctly in 3.x?

Thank you!

I confirm that even in CMDBuild 3 you can configure widgets in the process forms.
You can find the list and the parameters of use in the CMDBuild Workflow Manual 3.2 ENG page 14 and later.
You can find examples of use in the CMDBuild Ready2Use and openMAINT processes downloadable from SourceForge.

Hi,

I’ve actually searched both Ready2Use and openMAINT and was unable to find a Class where “Start Workflow” widget is used :frowning:

Could you please point me to some example class in either Ready2Use or openMAIN where I can Start Workflow from an asset card screen (not from the processes) so I can learn by example?

Thank you!

Hi,

Is there a chance to get “Start workflow” working via “Form widgets” in 3.1.1?