Very strange behaviour of smodel lang. Follow
Hi,
if i write the following code in a $LOOP$ macro:
(node, genContext, operationContext)->sequence<node< >> {
sequence<node<BusinessProperty>> props = node.getGivenBusinessObject().getPersistentBusinessProperties();
props.where({~it => it.key; });
}
the $LOOP$ macro should obviously iterate over some BusinessProperties. However, i a property macro inside the $LOOP$, i can access the node.propertyName from the code completion menu, but then i get the error:
access to property "propertyName" is not expected for an instance of BaseConcept
How strange .... what is the problem here? Any suggestions?
Dan
if i write the following code in a $LOOP$ macro:
(node, genContext, operationContext)->sequence<node< >> {
sequence<node<BusinessProperty>> props = node.getGivenBusinessObject().getPersistentBusinessProperties();
props.where({~it => it.key; });
}
the $LOOP$ macro should obviously iterate over some BusinessProperties. However, i a property macro inside the $LOOP$, i can access the node.propertyName from the code completion menu, but then i get the error:
access to property "propertyName" is not expected for an instance of BaseConcept
How strange .... what is the problem here? Any suggestions?
Dan
Please sign in to leave a comment.
(node, genContext, operationContext)->sequence<node< >> {
sequence<node<BusinessProperty>> props = node.getGivenBusinessObject().getPersistentBusinessProperties();
props.where({~it => it.key; }).select({~it => it : BusinessProperty});
}