Book a Demo

Author Topic: How to add array of sth as param for operaration  (Read 3919 times)

koral

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
How to add array of sth as param for operaration
« on: January 23, 2014, 03:26:00 am »
I have a class Class1 with operation Operation1. Also I have another class Class2.
I need to add input parameters to Operation1 - first is string and second is array of objects of class Class2. How to setup multiplicity on second parameter?

Paul Lotz

  • EA User
  • **
  • Posts: 248
  • Karma: +1/-0
    • View Profile
Re: How to add array of sth as param for operarati
« Reply #1 on: January 24, 2014, 04:24:15 am »
When you define Class1::operation1, save the operation, then click the "Edit" button next to Parameters to edit the parameters.
In the resulting dialog add each input parameter.  There is a button for Multiplicity on this parameter definition dialog.  I don't think it is possible to display this multiplicity on the diagram.  (This is build 1009.)

Paul
« Last Edit: January 24, 2014, 04:25:16 am by pauljlotz »