There is a way to access the K2 API from blackpoint, although I will make the disclaimer that this is not supported in blackpoint. I will go over the steps of calling the GoToActivity method of the API from a reference event within the K2 designer for K2 blackpoint.
Within K2 designer, you will need to drag a reference event onto the workspace.
Configure an event name for the event, and after clicking next, you will come to a screen within the wizard to add a Constructor.
The next wizard you will want to click the "Add Reference” button and browse to “C:\Program Files (x86)\K2 blackpoint\Bin\SourceCode.Workflow.Management.dll” (if using a 64bit server). Select this DLL and add it to the list of available managed process references.
For the configuration properties of the constructor, enter the following: host: value is the server name of K2 |
Once this constructor has been added, you will be brought back to the main wizard screen for the reference event and now it will allow you to add a Method event.
After you click the add method option, you will need to expand the WorkflowManagementServer node and scroll down and find the method Open()
Select Next and leave the default values for the configure properties and click Finish |
Once more on the reference event main screen, click Add Method and expand out WorkflowManagementServer and find the method GoToActivity(Int32 procInstID, String activityName) : Boolean