maia/.svn/pristine/cb/cbe6985c80148f147e3dd51ae8d...

53 lines
1.1 KiB
Plaintext
Executable File

/*
*
*/
package com.fp.bpmlib.transaction.task;
import com.fp.bpmlib.task.client.TaskUtil;
import com.fp.dto.rules.TransactionRule;
import com.fp.dto.save.SaveRequest;
// TODO: Auto-generated Javadoc
/**
* Class TaskStart encargada de.
*
* @author gfiallos
*/
public class TaskStart extends TransactionRule {
/** Constante serialVersionUID. */
private static final long serialVersionUID = 1L;
/**
* Normal process.
*
* @param pReq the req
* @return save request
* @throws Exception la exception
*/
@Override
public SaveRequest normalProcess(SaveRequest pReq) throws Exception {
Long tid = pReq.getLong(TaskUtil.BPM_TID);
TaskUtil t = new TaskUtil(tid);
try {
t.start();
} finally {
t.close();
}
return pReq;
}
/**
* Reverse process.
*
* @param pReq the req
* @return save request
* @throws Exception la exception
*/
@Override
public SaveRequest reverseProcess(SaveRequest pReq) throws Exception {
return pReq;
}
}