On Tue, May 18, 2010 at 08:52:02AM +0200, Asier wrote:
> 
> I'm using ruote-kit and trying to model a workitem as a Java class
> for JSON serialization/deserialization, but I'm stuck with the
> workitem definition and can't get the point to a proper class
> definition.
> 
> Anyone has modeled workitems in Java and can share his ideas?

Hello Asier,

sorry, I'm Java-clueless. Let me just suggest a simplification :

class WorkItem {
    private Fields fields = new Fields();
    private Map<String, Object> fields = new HashMap<String, Object>();
    private Map<String, String> fei = new HashMap<String, String>();

    private String _rev;
    private String _id;
    private String participant_name;
    private String wfid;
    private String type;
    private String put_at;

    private List<Map<String, String>> links = new
ArrayList<Map<String, String>>();;

    WorkItem() {}
}


Best regards,

-- 
John Mettraux - http://jmettraux.wordpress.com

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to