cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Type mismatch error invoking java method from script editor

agiovannetti
Super Contributor

From script editor I'm trying to invoke a method of a Java class referenced:

mfProcToOrg = "~Rwp9agYmKXWI[UBIS Report From Proc to Org]"	 
Set cBP = megaRoot.getCollection("Business Process")
Set cBusinessProcess = cBP.selectQuery(sMessage, bUnique)

If cBusinessProcess.count = 0 Then
	MsgBox "Selezionare almeno un processo"
End If	

For Each oBusinessProcess in cBusinessProcess
  Set mProcToOrg = megaroot.CurrentEnvironment.GetMacro(mfProcToOrg)
  mProcToOrg.GenerateCollection megaroot, cBPSelected
Next 

but I'm getting the error: 

Script Editor Default : Microsoft VBScript runtime error line 11, offset 2 :
Error(0x800a000d) : Type mismatch: 'mProcToOrg.GenerateCollection'

Any idea what I'm getting wrong?

1 Reply

agiovannetti
Super Contributor

There was an error on the second parameter of invoked method