How can I get the next Workflow activity after I have gotten the processdefinition for the current instance id using the Core Service?
Below is the code which I have already:
ActivityInstanceData currentActivity =
(ActivityInstanceData)client.Read("tcm:222-122108-131104", null);
ActivityDefinitionData activitydefinition =
(ActivityDefinitionData)client.Read(currentActivity.ActivityDefinition.IdRef, null);
ProcessDefinitionData processdefinition =
(ProcessDefinitionData)client.Read(activitydefinition.ProcessDefinition.IdRef, null);