Can Parameter be passed to/from OCL procedure

5 pts.
Tags:
AS/400
CL Program
OCL
Can a parameter be passed to/from an OCL procedure (as opposed to CL program)?
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

Found this summary on another site, hope it helps

This is a hole in the OCL language. There is no way to bind the output 
values of operation calls, except for the single return parameter (I’m 
still upset that UML removed the multiplicity of returns).

However, it doesn’t restrict the formulation of post-conditions. A 
postcondition can read the values of INOUT and OUT parameters. In a 
precondition, OUT parameters are undefined.



Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Splat
    It's been eons since I've messed about with OCL but I do know you can pass parameters to another OCL.  I can't remember if you can get parameters back from it though.
    12,875 pointsBadges:
    report
  • Subhendu Sen
    Generally, parameter is an one way in ocl. You can try to use lda as an alternative.
    138,660 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: