I have written a Workflow Activity Library to group together multiple Workflow toolbox items I use over and over.
The group of items use a CorrelationToken (CreateTask,onTaskCreated...). While building the Activity Library I have given each of the items this CorrelationToken.
However how do I handle the CorrelationTokens once I start using my Activity Library toolbox item in new Workflows?
i.e. When I drag my new Activity Library toolbox item onto a Workflow and expand it, I can see the CorrelationToken I set when developing it against each sub item. If I then drag a second instance of my Activity Library onto the workflow, then both "groups" of activities are using the same CorrelationToken for their sub items - which I assume is a bad thing!
How should I handle this? Should I somehow be setting the CorrelationToken dynamically?