File widget

1
0
-1

Hi,

I'm trying to use the File widget and I'm confused about how to use it. First, I've created a a document in my pool, and then I've added a File widget to a form of one of my human tasks. I attach image of my configuration: fileWidgetConfig My problem is that when I execute the process, I cannot see the widget. Simply, I see the others widgets but the File widget has gone. However if I click the preview option I can see it perfectly, and it works well. Does anyone know why?

thanks in advance and regards.

P.S: I'm having a lots of different problems. If anyone can help me with some other of them, I would thank you: help with calendar connector help creating a spreadsheet connector help trying to use Google Maps

Comments

Submitted by Sean McP on Thu, 05/28/2015 - 13:54

Have you set the display mode in the options to false by mistake? The file/document portion looks ok...

Submitted by javiermmm.fujitsu on Fri, 05/29/2015 - 10:49

I'm not sure, cause my Bonita is in Spanish, but I don't think so, I think it has the default options of the widget. Anyway, I attach image of my options pane: options pane

EDIT: I have not noticed it before, but I'm having the same problem with the message widget. By clciking the preview option I can see it perfectly, but when I execute this task it's not shown. The options pane is the same without the "Is required" checkbox (there is not such checkbox).

Submitted by Sean McP on Fri, 05/29/2015 - 16:11

In English it says Insert Widget if - and your is blank which means it's OK and should show.

The message widget will show nothing unless there is something in it...the file widget should show with no problem.

create a new step, add a form add a file widget - do NOT add a file variable to the widget, RUN - it should show, if not then there is an issue

regards

Submitted by javiermmm.fujitsu on Mon, 06/01/2015 - 09:14

Hi,

Let's see: 1.- My message widget had an invalid name. Now, It's shown. 2.- About the File Widget, I've deleted the step and added a new one, and It's working now, even with a file variable. However, I'm facing another trouble: now I see a form I shouldn't see. My pool hasn't a form, and my lane neither. Besides, the form with the file widget is in my first task, and in spite of it, I'm seeing a first empty form, only with a Button to continue.

I attach some images with my Bonita config, and what I see, step by step, when I execute the process. http://s16.postimg.org/ktgjenfat/ghost_form.png http://s16.postimg.org/b7myyco51/ghost_form_2.png http://s16.postimg.org/jfowjcg1h/ghost_form_3.png http://s16.postimg.org/8mheatyr9/ghost_form_4.png http://s16.postimg.org/4emm22xbp/ghost_form_5.png http://s16.postimg.org/7mr3f4jlh/ghost_form_6.png

Why is it hapenning? How can I remove this empty form, if it doesn't exists apparently?

thanks in advance and regards.

Submitted by Sean McP on Mon, 06/01/2015 - 13:53

Ahhh the infamous Pool Form,

Nope can't get rid of it, it has been discussed many times. Use it to gie a summary of the process to follow and if the user cancels the screen because it's not the one they want - no case is generated, if they do then continue.

You can get rid of the a step is available by using the confirmation form, search for bonita auto redirect....

regards

Submitted by javiermmm.fujitsu on Tue, 06/09/2015 - 12:50

Does this means, that I cannot make autonomous process? I mean, if there will be an initial form always, even if I've not put it there, I cannot make advance the process without a human interaction? Have I understood well?

Submitted by Sean McP on Tue, 06/09/2015 - 13:15

Humm, interesting question.

But what type of process would you want to start without Human Interaction? By definition if using the web portal, the Start a Process is a Human interaction therefore the form will be displayed.

Consider, and assuming autonomous, you mean a process like this:

Start Step1 ofTypeScript Step2 ofTypeScript Step3 ofTypeScript Step4 ofTypeScript End

If you execute this process from the Web Portal you will always get the Pool Form related to Start and the End Form for End. There is no way round it today.

However, if you use code like this to fire the process, or any other programmatic method (message, timer, exception, trigger etc.)

import org.bonitasoft.engine.api.ProcessRuntimeAPI;
startProcess(long processId);

Then there will be no screens shown, this is taken care of within the engine.

search the Javadoc for startProcess

Again if a process where to CALL the process above as a sub-process then no forms will be displayed...

Hope that helps regards

No answers yet.
Notifications