I needed a way to auto bind an activities inArgument to its parent activities delegateInArguments (property defined in an activity action).
Picture dropping a WriteLine activity into an foreach<string> and having the foreach's argument automatically placed into the in argument of the writelines text property -
binding it as it is dropped.
I have created the constraint, and it works, including changing the binding to the parent or setting the property back to null if not in a parent. My problem is
that the UI doesn't reflect this. It actually looks like it is doing nothing - I only know it works because it comes back correctly after a save and load of the workflow pattern.
I'm guessing that I somehow need to refresh the model item?
How do I refresh the model item from within a constraint?
If it helps I have included the code for my constraint below, but note that my need is not as simple as the above example, so this does a couple of other things that don't
make sense to this question.
static Constraint CheckParent()
DelegateInArgument<GetTaskPermissionsActivity> element = new DelegateInArgument<GetTaskPermissionsActivity>();
DelegateInArgument<ValidationContext> context = new DelegateInArgument<ValidationContext>();
Variable<bool> result = new Variable<bool>();
View Complete Post