Topic
1 reply Latest Post - ‏2014-08-28T07:50:56Z by Zobi
Zobi
Zobi
4 Posts
ACCEPTED ANSWER

Pinned topic Workflows - Relevant Data MAP

‏2014-08-25T15:00:52Z |

Hello,

 

I developed an extension in java, and i call it from a workflow.

My java methode is like :

public ActivityResult addSupportingData(Service service, Map<String, String> rdn, Map<String, Object> object)

 

So i need to pass some Map attributs. That's the problem !

I create a relevant data (globalMapRelevantAttribut) in my operation workflow, i fill in my attribut with a script :

var map = {};

map["uid"]="123Soleil";

globalMapRelevantAttribut.set(map);

 

then call my extension. And i get this error (in french) : java.lang.illegalArgumentException] type d'argument non concordant  (=argument mismatched types)

at com.ibm.itim.workflow.engine.ApplicationException.wrapException(ApplicationException.java:40)    ....

at sun.reflect.NativMethodAccessorImpl.invoke0(Native Methode) ...

 

So there is a problem then i call the extension (not IN the extension).

I think that i don't create the Map object in the good way.. but how ?

 

i tried different ways :

var map = { toto : titi };

var map = [ { toto : titi } ];

var map = new Object();

var map = new java.util.HashMap();

...

 

 

:(

My question is :

How to create an object in javascript, which can be saved as "Map" in a relevant Data workflow.

And if you have an exemple like :

var map = { 'uid' : 'meuhmeuh' };

globalMap.set(map);

process.auditEvent(globalMap.get()["uid"]);

 

 

Regards

ISIM 6.0.0.2

Updated on 2014-08-25T15:42:50Z at 2014-08-25T15:42:50Z by Zobi
  • Zobi
    Zobi
    4 Posts
    ACCEPTED ANSWER

    Re: Workflows - Relevant Data MAP

    ‏2014-08-28T07:50:56Z  in response to Zobi

    Add ITIM.java.access.util=java.util.* in scriptframework.properties, restart ISIM

    In the workflow :

    var map = new java.util.HashMap();

    map.put("Titi","Toto");

    globalMap.set(map);