Bonita Studio 6.3.2 - Groovy Editor - Only return type is "Object"?

Hi,

Bonita Studio 6.3.2, Java 1.7.067, Windows 8.1

When creating a new Groovy Connector:

  1. Select Step (Task)
  2. Connectors->Add->Script->Groovy 1.8->Next->Name->Next->click the pencil

all you get is return type java.lang.object with the browse button grayed out. Surely I should be able to return a string/interger etc. as well as an object.

This has to be a bug…

I want to be able to choose my return…

Many thanks and best regards
Seán

It is not a bug. Script returns an Object and then you have the ‘Next’ screen of your connector wizard, on which you are able to transform your Object to any type of your choice. This is where you do mapping of the script result to variables and it gives you the flexibility to cast the same result to a string and to an integer variable, using two operations.
Hope this helps,
Haris

You said it …

TWO operations, what’s wrong with only ONE?

I don’t see the logic, in-fact there is no logic, I mean if you go to Connectors->Manage Groovy Scripts and create a new one there you can create all types, why not in the script editor too?

It’s mad I tell you, One operation, less chance of a problem…

regards
Seán