<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body>
<div class="BodyFragment">
<font size="2"><div class="PlainText">Well, I'm providing as attachment my CompositeActor code (which doesn't work properly) along with the model that should use it.<br>
Ideally the output should be: <br>
"<br>
Hello muhannad<br>
Hello ali<br>
no input<br>
"<br>
<br>
but what I get is:<br>
"<br>
Hello muhannad<br>
Hello ali<br>
Hello nothing<br>
"<br>
<br>
any help please?<br>
<br>
Thanks!<br>
<br>
Best regards,<br>
<br>
Muhannad<br>
<br>
</div></font>
</div>
<div class="BodyFragment">
<font size="2"><div class="PlainText"><br>
<br>
<br>
<br>
On Jan 15, 2012, at 10:49 PM, Muhannad Ali wrote:<br>
<br>
> Hello,<br>
> <br>
> I'm trying to develop a Composite actor with a PortParameter (let's name it: myPort) so that I can provide the input through an external actor (e.g. StringConst) and at the same time take benefit of the attributeChanged method every time the input changed in order to do some internal works.<br>
> <br>
> Would you help me please to understand how I should update the port expression's value whenever the input changes? I've tried myPort.setExpression(((StringToken) myPort.getPort().get(0)).stringValue()). But it did not work.<br>
> <br>
> Thanks!<br>
> <br>
> Muhannad<br>
<br>
</div></font>
</div>
</body></html>