Reputation: 1
I am modeling an development process where projects (Epics) come from the Source and are broken down into their components (Features) that go through development. Once those components (Features) are completed the project (Epic) is complete. Here are the model detail (see screen shot too). enter image description here
So my questions are how do I write the On Enter function to check the other featureWait block for other linked Feature agents? And then how do I free them to signify the epic is now complete? Thanks,
Upvotes: 0
Views: 86
Reputation: 9376
What I would do instead of using featureWait1 and 2, on the sinkFeature1 and 2 I would do
if(agent.EpicLink.getConnectedAgent().featureLink.getConnectionsNumber()==1){
epicWait.free(agent.EpicLink.getConnectedAgent());
}
agent.EpicLink.disconnect();
where epicLink represents the connection in the feature agent that is the connection to the associated epic
Upvotes: 1