158159160161162163164165166167168
try { WfAssignment a = getAssignment(sConn, activityId); if (!isMine(sConn, a)){ assignmentAccept(sConn, a); } a.activity().complete(); } catch (Exception e) { throw e; } } } catch (Exception e) {
238239240241242243244245246247248
if (!isMine(sConn, a)){ throw new Exception("I don't own activity " + activityId); } Map _m = new HashMap(); Object c = a.activity().process_context().get(vName); if (c instanceof Long) { c = new Long(vValue); } else if (c instanceof Boolean) { c = Boolean.valueOf(vValue);
251252253254255256257258259260261
} else { c = vValue; } _m.put(vName, c); a.activity().set_result(_m); } public static List getVariableData(SharkConnection sConn, WfActivity act) throws Exception { return getVariableData(sConn, act, true);