ex9_8.txt
来自「j2ee core design patterns」· 文本 代码 · 共 33 行
TXT
33 行
Example 9.8 CandidateAppService Code
package ActionAdapter;
public class CandidateAppService {
public void createCandidate(String userId, String lname,
String fname, String street, String city, String state,
String zip, WorkflowContext context ) {
// do logic
// store data
HireEmployeeAA aa = new HireEmployeeAA();
aa.candidateCreated(userId,context.getWorkflowProcessId(),
context.getWorkItemId() );
}
public void submitReview(String userId, ReviewInfoTO to,
WorkflowContext context ) {
// do logic
// store data
HireEmployeeAA aa = new HireEmployeeAA();
aa.candidateReviewed(userId,
context.getWorkflowProcessId(),
context.getWorkItemId());
}
public void submitInterview(String userId,
InterviewInfoTO to, WorkflowContext context)
throws CandidateException {
// do logic
// store data
HireEmployeeAA aa = new HireEmployeeAA();
aa.candidateInterviewed(userId,
context.getWorkflowProcessId(),
context.getWorkItemId());
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?