I have defined a WorkflowContext in device.xml:
<WorkflowContext Handle="myWorkflowContext">
<Type>
<CodeId>MDCX_MY_WORKFLOW_CONTEXT</CodeId>
</Type>
</WorkflowContext>
Now I'm trying to use it on client side (pseudo code):
mdsContexts = bicepsClient.getMDSContexts
contextElements = mdsContexts.getMDSContextElements
find DefaultBICEPSWorkflowContext in contextElements:
workflowContext.getContextElementItem // returns null
getContextElementItem returns null because in BICEPSProxyUtil.getCurrentStateFromDevice(...) it tries to determine the state's class. "myWorkflowContext" is of class ContextAssociationState. That's really weird because I'm using this method on a WorkflowContext with handle "myWorkflowContext".
I do not understand the relationship between Contexts (WorkflowContext, PatientContext, ...) and ContextAssociationState.
How to access a context's content from client side?