[kepler-users] Optional Parameter

Edward A. Lee eal at eecs.berkeley.edu
Fri Nov 30 10:13:55 PST 2012


There is no way that I know of to do this easily...

A couple of notes:

The parameter names should match the field names.
Otherwise, you will have problems if you use the actor
in actor-oriented classes. If you want the user to see
a different name, I suggest:

enableOperation = new Parameter(this, "enableOperation");
enableOperation.setDisplayName("enableCatalogUpdate");

Edward


On 11/30/12 1:42 AM, SIGNORET Jacqueline 139795 wrote:
> Dear All,
>
> I am a beginner trying to develop an actor. I apologize for asking a
> silly question.
>
> I need two parameter : the first is a Boolean and the second one a String :
>
> public Parameter enableOperation;
>
> public StringParameter method;
>
> enableOperation = new Parameter(this, "enableCatalogUpdate");
>
> enableOperation.setTypeEquals(BaseType.BOOLEAN);
>
> enableOperation.setExpression("false");
>
> method = new StringParameter(this, "populationRequest");
>
> method.setTypeEquals(BaseType.STRING);
>
> method.setExpression("create");
>
> method.addChoice("create");
>
> method.addChoice("update");
>
> I should like that the second parameter be available only when the user
> checks the first one. Is it possible to do that easily?
>
> Many thanks for any help.
>
> Jacqueline
>
>
>
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at kepler-project.org
> http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eal.vcf
Type: text/x-vcard
Size: 330 bytes
Desc: not available
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-users/attachments/20121130/2e8fb9b0/attachment.vcf>


More information about the Kepler-users mailing list