first commit
This commit is contained in:
25
hrmsEjb/wenrgise/workflow/core/impl/WflDepartmentImpl.java
Normal file
25
hrmsEjb/wenrgise/workflow/core/impl/WflDepartmentImpl.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package wenrgise.workflow.core.impl;
|
||||
|
||||
import wenrgise.workflow.core.WflDepartment;
|
||||
|
||||
public class WflDepartmentImpl implements WflDepartment {
|
||||
private String departmentId;
|
||||
|
||||
private String departmentName;
|
||||
|
||||
public String getDepartmentId() {
|
||||
return this.departmentId;
|
||||
}
|
||||
|
||||
public void setDepartmentId(String newDepartmentId) {
|
||||
this.departmentId = newDepartmentId;
|
||||
}
|
||||
|
||||
public String getDepartmentName() {
|
||||
return this.departmentName;
|
||||
}
|
||||
|
||||
public void setDepartmentName(String newDepartmentName) {
|
||||
this.departmentName = newDepartmentName;
|
||||
}
|
||||
}
|
138
hrmsEjb/wenrgise/workflow/core/impl/WflDocumentInfoImpl.java
Normal file
138
hrmsEjb/wenrgise/workflow/core/impl/WflDocumentInfoImpl.java
Normal file
@@ -0,0 +1,138 @@
|
||||
package wenrgise.workflow.core.impl;
|
||||
|
||||
import java.util.HashMap;
|
||||
import wenrgise.workflow.core.WflDocumentInfo;
|
||||
import wenrgise.workflow.core.WflResource;
|
||||
import wenrgise.workflow.core.WflSite;
|
||||
|
||||
public class WflDocumentInfoImpl implements WflDocumentInfo {
|
||||
private WflResource requester = null;
|
||||
|
||||
private WflResource creator = null;
|
||||
|
||||
private String requesterAction = null;
|
||||
|
||||
private String documentTypeId = null;
|
||||
|
||||
private String documentId = null;
|
||||
|
||||
private String documentNumber = null;
|
||||
|
||||
private String moduleId = null;
|
||||
|
||||
private WflSite site = null;
|
||||
|
||||
private HashMap documentAttributes;
|
||||
|
||||
private String workListId;
|
||||
|
||||
private String documentType = null;
|
||||
|
||||
private String initiatedFlag;
|
||||
|
||||
private String docDesc;
|
||||
|
||||
public WflResource getCreator() {
|
||||
return this.creator;
|
||||
}
|
||||
|
||||
public void setCreator(WflResource newCreator) {
|
||||
this.creator = newCreator;
|
||||
}
|
||||
|
||||
public String getDocumentId() {
|
||||
return this.documentId;
|
||||
}
|
||||
|
||||
public void setDocumentId(String newDocumentId) {
|
||||
this.documentId = newDocumentId;
|
||||
}
|
||||
|
||||
public String getDocumentNumber() {
|
||||
return this.documentNumber;
|
||||
}
|
||||
|
||||
public void setDocumentNumber(String newDocumentNumber) {
|
||||
this.documentNumber = newDocumentNumber;
|
||||
}
|
||||
|
||||
public String getDocumentTypeId() {
|
||||
return this.documentTypeId;
|
||||
}
|
||||
|
||||
public void setDocumentTypeId(String newDocumentTypeId) {
|
||||
this.documentTypeId = newDocumentTypeId;
|
||||
}
|
||||
|
||||
public String getModuleId() {
|
||||
return this.moduleId;
|
||||
}
|
||||
|
||||
public void setModuleId(String newModuleId) {
|
||||
this.moduleId = newModuleId;
|
||||
}
|
||||
|
||||
public WflResource getRequester() {
|
||||
return this.requester;
|
||||
}
|
||||
|
||||
public void setRequester(WflResource newRequester) {
|
||||
this.requester = newRequester;
|
||||
}
|
||||
|
||||
public String getRequesterAction() {
|
||||
return this.requesterAction;
|
||||
}
|
||||
|
||||
public void setRequesterAction(String newRequesterAction) {
|
||||
this.requesterAction = newRequesterAction;
|
||||
}
|
||||
|
||||
public WflSite getSite() {
|
||||
return this.site;
|
||||
}
|
||||
|
||||
public void setSite(WflSite newSite) {
|
||||
this.site = newSite;
|
||||
}
|
||||
|
||||
public HashMap getDocumentAttributes() {
|
||||
return this.documentAttributes;
|
||||
}
|
||||
|
||||
public void setDocumentAttributes(HashMap newDocumentAttributes) {
|
||||
this.documentAttributes = newDocumentAttributes;
|
||||
}
|
||||
|
||||
public String getWorkListId() {
|
||||
return this.workListId;
|
||||
}
|
||||
|
||||
public void setWorkListId(String newWorkListId) {
|
||||
this.workListId = newWorkListId;
|
||||
}
|
||||
|
||||
public String getDocumentType() {
|
||||
return this.documentType;
|
||||
}
|
||||
|
||||
public void setDocumentType(String newDocumentType) {
|
||||
this.documentType = newDocumentType;
|
||||
}
|
||||
|
||||
public String getInitiatedFlag() {
|
||||
return this.initiatedFlag;
|
||||
}
|
||||
|
||||
public void setInitiatedFlag(String newInitiatedFlag) {
|
||||
this.initiatedFlag = newInitiatedFlag;
|
||||
}
|
||||
|
||||
public String getDocDesc() {
|
||||
return this.docDesc;
|
||||
}
|
||||
|
||||
public void setDocDesc(String newDocDesc) {
|
||||
this.docDesc = newDocDesc;
|
||||
}
|
||||
}
|
77
hrmsEjb/wenrgise/workflow/core/impl/WflResourceImpl.java
Normal file
77
hrmsEjb/wenrgise/workflow/core/impl/WflResourceImpl.java
Normal file
@@ -0,0 +1,77 @@
|
||||
package wenrgise.workflow.core.impl;
|
||||
|
||||
import wenrgise.workflow.core.WflDepartment;
|
||||
import wenrgise.workflow.core.WflResource;
|
||||
import wenrgise.workflow.core.WflSite;
|
||||
|
||||
public class WflResourceImpl implements WflResource {
|
||||
private String employeeId = null;
|
||||
|
||||
private String empNo = null;
|
||||
|
||||
private String userId = null;
|
||||
|
||||
private WflSite loginSite = null;
|
||||
|
||||
private WflDepartment department = null;
|
||||
|
||||
private String routeDtlId;
|
||||
|
||||
private String delegatedBy;
|
||||
|
||||
public WflDepartment getDepartment() {
|
||||
return this.department;
|
||||
}
|
||||
|
||||
public void setDepartment(WflDepartment newDepartment) {
|
||||
this.department = newDepartment;
|
||||
}
|
||||
|
||||
public String getEmployeeId() {
|
||||
return this.employeeId;
|
||||
}
|
||||
|
||||
public void setEmployeeId(String newEmployeeId) {
|
||||
this.employeeId = newEmployeeId;
|
||||
}
|
||||
|
||||
public String getEmpNo() {
|
||||
return this.empNo;
|
||||
}
|
||||
|
||||
public void setEmpNo(String newEmpNo) {
|
||||
this.empNo = newEmpNo;
|
||||
}
|
||||
|
||||
public WflSite getLoginSite() {
|
||||
return this.loginSite;
|
||||
}
|
||||
|
||||
public void setLoginSite(WflSite newLoginSite) {
|
||||
this.loginSite = newLoginSite;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return this.userId;
|
||||
}
|
||||
|
||||
public void setUserId(String newUserId) {
|
||||
this.userId = newUserId;
|
||||
}
|
||||
|
||||
public String getRouteDtlId() {
|
||||
return this.routeDtlId;
|
||||
}
|
||||
|
||||
public void setRouteDtlId(String newRouteDtlId) {
|
||||
this.routeDtlId = newRouteDtlId;
|
||||
}
|
||||
|
||||
public String getDelegatedBy() {
|
||||
return this.delegatedBy;
|
||||
}
|
||||
|
||||
public void setDelegatedBy(String newDelegatedBy) {
|
||||
this.delegatedBy = newDelegatedBy;
|
||||
}
|
||||
}
|
37
hrmsEjb/wenrgise/workflow/core/impl/WflServiceImpl.java
Normal file
37
hrmsEjb/wenrgise/workflow/core/impl/WflServiceImpl.java
Normal file
@@ -0,0 +1,37 @@
|
||||
package wenrgise.workflow.core.impl;
|
||||
|
||||
import java.util.logging.Logger;
|
||||
import wenrgise.common.exception.EnrgiseApplicationException;
|
||||
import wenrgise.common.exception.EnrgiseSystemException;
|
||||
import wenrgise.workflow.core.WflDocumentInfo;
|
||||
import wenrgise.workflow.core.WflService;
|
||||
import wenrgise.workflow.core.WflStatus;
|
||||
import wenrgise.workflow.core.WorkFlow;
|
||||
import wenrgise.workflow.exception.WorkFlowServiceNotFoundException;
|
||||
import wenrgise.workflow.impl.WorkFlowImpl;
|
||||
|
||||
public class WflServiceImpl implements WflService {
|
||||
public static final Logger log = Logger.getLogger("wenrgise.workflow.utility.WorkflowPlugin");
|
||||
|
||||
public boolean canDo(WflDocumentInfo docInfo) throws EnrgiseApplicationException, EnrgiseSystemException {
|
||||
return true;
|
||||
}
|
||||
|
||||
public WflStatus process(WflDocumentInfo docInfo) {
|
||||
try {
|
||||
WorkFlow wfl = getWorkFlowImplementation(docInfo);
|
||||
log.severe("proc1");
|
||||
if (wfl != null) {
|
||||
log.severe("proc2");
|
||||
return wfl.start(docInfo);
|
||||
}
|
||||
return null;
|
||||
} catch (WorkFlowServiceNotFoundException oSx) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
private WorkFlow getWorkFlowImplementation(WflDocumentInfo docInfo) throws WorkFlowServiceNotFoundException {
|
||||
return (WorkFlow)new WorkFlowImpl();
|
||||
}
|
||||
}
|
35
hrmsEjb/wenrgise/workflow/core/impl/WflSiteImpl.java
Normal file
35
hrmsEjb/wenrgise/workflow/core/impl/WflSiteImpl.java
Normal file
@@ -0,0 +1,35 @@
|
||||
package wenrgise.workflow.core.impl;
|
||||
|
||||
import wenrgise.workflow.core.WflSite;
|
||||
|
||||
public class WflSiteImpl implements WflSite {
|
||||
private String siteId = null;
|
||||
|
||||
private String parentSiteId = null;
|
||||
|
||||
private String siteName = null;
|
||||
|
||||
public String getSiteId() {
|
||||
return this.siteId;
|
||||
}
|
||||
|
||||
public void setSiteId(String siteId) {
|
||||
this.siteId = siteId;
|
||||
}
|
||||
|
||||
public String getParentSiteId() {
|
||||
return this.parentSiteId;
|
||||
}
|
||||
|
||||
public void setParentSiteId(String parentSiteId) {
|
||||
this.parentSiteId = parentSiteId;
|
||||
}
|
||||
|
||||
public String getSiteName() {
|
||||
return this.siteName;
|
||||
}
|
||||
|
||||
public void setSiteName(String newSiteName) {
|
||||
this.siteName = newSiteName;
|
||||
}
|
||||
}
|
46
hrmsEjb/wenrgise/workflow/core/impl/WflStatusImpl.java
Normal file
46
hrmsEjb/wenrgise/workflow/core/impl/WflStatusImpl.java
Normal file
@@ -0,0 +1,46 @@
|
||||
package wenrgise.workflow.core.impl;
|
||||
|
||||
import wenrgise.workflow.core.WflResource;
|
||||
import wenrgise.workflow.core.WflStatus;
|
||||
|
||||
public class WflStatusImpl implements WflStatus {
|
||||
private String status = null;
|
||||
|
||||
private WflResource wflResource = null;
|
||||
|
||||
private String errCode;
|
||||
|
||||
private String errMsg;
|
||||
|
||||
public String getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public WflResource assignedTo() {
|
||||
return this.wflResource;
|
||||
}
|
||||
|
||||
public void assign(WflResource resource) {
|
||||
this.wflResource = resource;
|
||||
}
|
||||
|
||||
public String getErrCode() {
|
||||
return this.errCode;
|
||||
}
|
||||
|
||||
public void setErrCode(String newErrCode) {
|
||||
this.errCode = newErrCode;
|
||||
}
|
||||
|
||||
public String getErrMsg() {
|
||||
return this.errMsg;
|
||||
}
|
||||
|
||||
public void setErrMsg(String newErrMsg) {
|
||||
this.errMsg = newErrMsg;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user