I reviewed most of the forum threads around migrating from K2 4.7 to 5.1 on-premises but I am not clear on what the recommended replacement is for the K2 context we currently use in K2 for Visual Studio. In other words, our K2 4.7 environment uses ASP.NET interfaces along with K2 DLLs (e.g. SourceCode.*.dll) to build our deployment packages.
Since K2 for Visual Studio is deprecated, we would need to move all the custom code into REST API endpoints and integrate with the K2 engine. But when I look at the Workflow REST API documentation, I see high level API endpoints around Task and Worklist management. Where can I find the REST API for the following
- K2 String Table (read)
- K2 Process Instance XML data (read & write)
- K2.ProcessInstance.Originator.Email (object)
Sample code in our current DLLs that uses this is below
So how can we migrate our custom code from K2 for Visual Studio into the new designers in K2 5.1 and use REST API integration?
Any help would be appreciated. Thanks.
Private Function GetDestinationsEmailIDs(ByVal K2 As Object) As String
For Each oDest As SourceCode.KO.Destination In K2.ActivityInstanceDestination.Destinations
ElseIf oDest.Type = SourceCode.KO.DestinationType.Queue Then ' this is a Role (that can be a set of user and/or group)
strEmail &= GetK2RoleUsers(oDest.Name) & ";"