Package com.easydesk.workflow
Class OMWorkflow
java.lang.Object
com.easydesk.workflow.DefaultWorkflow
com.easydesk.workflow.OMWorkflow
- All Implemented Interfaces:
Workflow
- Direct Known Subclasses:
EasyDeskWorkflow
Item 을 제외한 다른 모든 OM 들이 등록되거나, 변경될 때
Optionable 과 Artifactizable 에 관련된 내용을 포함함다.- Version:
- $id: OMWorkflow.java $Revision$, 09-02-17 11:42:27 AM KST
- Author:
- YounghoCho
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.easydesk.workflow.Workflow
Workflow.Action -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final StringAttributeOption 은 Optionable 이고 Artifactizable 인데, Artifactizable 인 경우는 Attribute 의 속성에 따라 경정이 된다.protected PipelineServiceWorkflowFactory.getInstance() 가 OMWorkflow(또는 그 서브클래스)를 리플렉션으로 만든 직후 SpringBeanFactoryHolder.autowire(workflow) 를 호출해서 채워 넣는다Fields inherited from interface com.easydesk.workflow.Workflow
PACKAGE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Persistent addedObject) Persistent 가 System db 에 처음 추가되면 동작한다.voidmodify(Persistent modifiedObject) Persistent 가 변경 될 때 동작한다.Methods inherited from class com.easydesk.workflow.DefaultWorkflow
add, add, addDependencyWorkflow, addItemWorkflow, addWorkflowsForOption, after, after, before, canMakeTransition, changeModuleItemTypeWorkflow, deleteDependencyWorkflow, deleteWorkflowsForAttribute, deleteWorkflowsForOption, getConditionTester, grantUser, hasConsistency, isSatisfied, modify, remove, resetAllWorkflowsForItemType, revokeUser, updateItemWorkflow
-
Field Details
-
ATTRIBUTE_OPTION_CLASS_NAME
AttributeOption 은 Optionable 이고 Artifactizable 인데, Artifactizable 인 경우는 Attribute 의 속성에 따라 경정이 된다. 따라서 Workflow 의 경로를 분리하기 위하여 도입했다. TODO : 막아둔 Attribute.ARTIFACTIZABLE 을 살려 이 경로 분리를 제거할 지, 속성들의 특성을 공통화 할 수 있는지 확인하여 진행한다.- See Also:
-
pipelineService
WorkflowFactory.getInstance() 가 OMWorkflow(또는 그 서브클래스)를 리플렉션으로 만든 직후 SpringBeanFactoryHolder.autowire(workflow) 를 호출해서 채워 넣는다. - add()/modify() 가 이 필드 없이는 동작할 수 없으므로 ( 무조건 pipelineService.register(...) 를 탐으로 ) required 는 기본값(true)으로 둔다: Spring 컨텍스트가 뜬 상태에서 PipelineService 빈을 못 찾으면 나중에 NPE 로 조용히 죽는 대신 autowire 시점에 바로 예외로 드러나는 편이 낫다.
-
-
Constructor Details
-
OMWorkflow
public OMWorkflow()
-
-
Method Details
-
add
Persistent 가 System db 에 처음 추가되면 동작한다.- Specified by:
addin interfaceWorkflow- Overrides:
addin classDefaultWorkflow- Parameters:
addedObject-- Throws:
WorkflowException- DOCUMENT ME!- See Also:
-
modify
Persistent 가 변경 될 때 동작한다.- Specified by:
modifyin interfaceWorkflow- Overrides:
modifyin classDefaultWorkflow- Parameters:
modifiedObject-- Throws:
WorkflowException- DOCUMENT ME!
-