01 /*
02 * Created on Aug 29, 2007
03 */
04 package com.x8ing.mc.bp.develop;
05
06 import java.util.List;
07
08 import com.x8ing.lsm4j.Condition;
09 import com.x8ing.lsm4j.state.ProcessableState;
10 import com.x8ing.mc.bp.AbstractBusinessAction;
11 import com.x8ing.mc.bp.BalanceAccount;
12 import com.x8ing.mc.bp.BusinessContext;
13
14 /**
15 * @author Patrick Heusser
16 */
17 public class DocumentAndFinishProcessAction extends AbstractBusinessAction {
18
19 /**
20 * @see com.x8ing.mc.bp.AbstractBusinessAction#execute(com.x8ing.lsm4j.state.ProcessableState,
21 * com.x8ing.mc.bp.BusinessContext, com.x8ing.lsm4j.Condition, java.util.List)
22 */
23 public void execute(ProcessableState currentState, BusinessContext businessContext, Condition previousCondition,
24 List lastVisitedStatesHistory) {
25
26 // our work finished
27 businessContext.setDevelopProcessBusy(false);
28
29 addBalanceSheetTransaction("finished develop process. updated documentation.", -businessContext.getConfiguration()
30 .getCostActionDocumentAndFinishProcess(), BalanceAccount.DEVELOP);
31
32 addLogBookEntry("develop process finished. documentation updated.");
33
34 }
35
36 protected void lazyInit() {
37 // empty
38 }
39
40 }
|