I have succeeded to reestablish the link between two activities after another one ( which existed before between them) was deleted.
if (containerAsFlowchart != null)
{
for (int i = 0; i < containerAsFlowchart.Nodes.Count; i++)
{
if (containerAsFlowchart.Nodes[i] is FlowStep)
{
FlowStep fs = containerAsFlowchart.Nodes[i] as FlowStep;
if (fs.Next == null)
{
if (i < containerAsFlowchart.Nodes.Count - 1)
{
fs.Next = (FlowNode)((containerAsFlowchart.Nodes[i + 1] as FlowStep));
}
}
}
}
}
Al works fine till now, but even if the connection is made back, I am not able to visualize it in the workflow designer. If I extend or collapse an activity, or any other operation which refreshes the workflow, that pretty arrow is back there but.. is there any way to do this programmatically, and trigger this repainting straight after I delete one activity ?