package data

type Command struct {
    Id string `json:"id"`
    ProcessId string `json:"processId"`
    Name string `json:"name"`
    Body string `json:"body"`
}

package data

type Command struct {
    Id string `json:"id"`
    ProcessId string `json:"processId"`
    Name string `json:"name"`
    Body interface{} `json:"body"`
}

Add generic behavior to body field, now it can be a simple or complex type
Add generic behavior to body field, now it can be a simple or complex type
