to apply a ModelingRule to an OrganizationalProcess, this VB code:
wellFormed = oMegaObject.applyRule(oRule)
works fine, I would like to write in java something like this:
Boolean aBool = anOrganizationalProcess.callFunction("ApplyRule", aRule);
Solved! Go to Solution.
thanks for your reply, but I am trying to re-write a VB macro in java.
I would like to apply a ModelingRule to a MegaObject and check if it is valid.
How could I do that?
Just to add a note, this code:
Object anObject = anOrganizationalProcess.callFunction("ApplyRule", aRule);
throws the eception: MEGA Error 80070057.
What am I doing wrong?
This code seems to work fine:
Object anObject = anOrganizationalProcess.invokeFunction("ApplyRule", aRule);