예제 #1
0
 public void update(VariableValueMeta meta) throws WorkflowException {
   try {
     VariableValueBean bean = new VariableValueBean();
     if (bean.update(unwrap(meta)) != 1) throw new WorkflowException(1315);
   } catch (SQLException sqle) {
     throw new WorkflowException(1316, sqle.toString());
   }
 }
예제 #2
0
 /**
  * 删除instance所有VariableValue
  *
  * @param instanceId
  * @param conn
  * @throws WorkflowException
  * @throws
  * @see
  */
 public void removeByInstance(int instanceId) throws WorkflowException {
   try {
     VariableValueBean bean = new VariableValueBean();
     bean.removeByInstance(instanceId);
   } catch (SQLException sqle) {
     throw new WorkflowException(1311, sqle.toString());
   }
 }
예제 #3
0
 /**
  * 创建变量
  *
  * @param meta dto对象
  * @param conn
  * @throws WorkflowException
  * @throws
  * @see
  */
 public void create(VariableValueMeta meta) throws WorkflowException {
   try {
     VariableValueBean bean = new VariableValueBean();
     meta.setValueId(Sequence.fetch(Sequence.SEQ_VARIABLE_VALUE));
     if (bean.insert(unwrap(meta)) != 1) throw new WorkflowException(1310);
   } catch (SQLException sqle) {
     throw new WorkflowException(1311, sqle.toString());
   }
 }