@@ -21,6 +21,7 @@ public static ProcessInstanceAggregate ToDomain(this ProcessInstanceModel proces
2121 CreateDateTime = processInstance . CreateDateTime ,
2222 ProcessFileName = processInstance . ProcessFileName ,
2323 Version = processInstance . Version ,
24+ NameIdentifier = processInstance . NameIdentifier ,
2425 UpdateDateTime = processInstance . UpdateDateTime ,
2526 Status = ( ProcessInstanceStatus ) processInstance . Status ,
2627 ElementInstances = new ConcurrentBag < FlowNodeInstance > ( processInstance . ElementInstances . Select ( _ => _ . ToDomain ( ) ) . ToList ( ) ) ,
@@ -85,7 +86,7 @@ public static StateTransitionNotification ToDomain(this StateTransitionTokenMode
8586 {
8687 return new StateTransitionNotification ( stateTransition . Id . ToString ( ) )
8788 {
88- Content = stateTransition . SerializedContent == null ? null : JObject . Parse ( stateTransition . SerializedContent ) ,
89+ Content = stateTransition . SerializedContent ,
8990 FlowNodeInstanceId = stateTransition . FlowNodeInstanceId ,
9091 State = stateTransition . State
9192 } ;
@@ -105,7 +106,7 @@ public static ExecutionPointer ToDomain(this ExecutionPointerModel executionPoin
105106 {
106107 return new ExecutionPointer
107108 {
108- Id = executionPointer . Id . ToString ( ) ,
109+ Id = executionPointer . Id ,
109110 FlowNodeId = executionPointer . FlowNodeId ,
110111 IsActive = executionPointer . IsActive ,
111112 InstanceFlowNodeId = executionPointer . InstanceFlowNodeId ,
@@ -118,7 +119,7 @@ public static MessageToken ToDomain(this MessageTokenModel messageToken)
118119 {
119120 return new MessageToken
120121 {
121- MessageContent = messageToken . SerializedContent == null ? null : JObject . Parse ( messageToken . SerializedContent ) ,
122+ MessageContent = messageToken . SerializedContent ,
122123 Name = messageToken . Name
123124 } ;
124125 }
@@ -247,6 +248,7 @@ public static ExecutionPathModel ToModel(this ExecutionPath executionPath)
247248 {
248249 return new ExecutionPathModel
249250 {
251+ Id = executionPath . Id ,
250252 CreateDateTime = executionPath . CreateDateTime ,
251253 Pointers = executionPath . Pointers . Select ( _ => _ . ToModel ( ) ) . ToList ( )
252254 } ;
@@ -258,6 +260,7 @@ public static ExecutionPointerModel ToModel(this ExecutionPointer executionPoint
258260 tokens . AddRange ( executionPointer . Outgoing . Select ( _ => _ . ToModel ( MessageTokenDirections . OUTGOING ) ) . ToList ( ) ) ;
259261 return new ExecutionPointerModel
260262 {
263+ Id = executionPointer . Id ,
261264 FlowNodeId = executionPointer . FlowNodeId ,
262265 IsActive = executionPointer . IsActive ,
263266 InstanceFlowNodeId = executionPointer . InstanceFlowNodeId ,
0 commit comments