ChoiceAttributeText 예제

이 예제에서는 ChoiceAttributeText 비즈니스 규칙을 사용하여 요구사항에 적합한 워크플로우를 설정합니다.
워크플로우는 다음 조건을 충족해야 합니다.
  • 상태가 새로 작성인 경우 워크플로우 지시사항은 다음과 같습니다. 요구사항이 올바른 요청으로 판별된 경우 상태를 허용됨으로 변경하십시오. 요구사항이 올바르지 않은 경우 상태를 거부됨 또는 명확히 설명하기로 변경하십시오.
  • 상태가 허용됨으로 변경된 경우 워크플로우 지시사항은 다음과 같습니다. 우선순위가 가장 높은 요구사항을 릴리스에 계획하고 요구사항의 비용을 계산해야 합니다. 해당 요구사항의 상태를 계획됨으로 변경하십시오.
요구사항에 적합한 워크플로우 설정:
  1. 요소의 비즈니스 규칙 컨테이너 속성에 =ChoiceAttributeText('상태',"write_defaults")를 입력하십시오. 비즈니스 규칙 컨테이너 속성은 텍스트 속성이어야 합니다. 속성의 이름(예: 워크플로우)을 지정하십시오.
  2. 확인을 클릭하여 최상위 폴더에 있는 설명 속성에 기본 XML 템플리트를 표시하십시오. 템플리트 XML 코드는 설명 속성에 있습니다.
  3. 구성 > 속성 > 요구사항을 클릭하십시오.
  4. 워크플로우, 비즈니스 규칙 컨테이너 속성의 구성 페이지를 여십시오.
  5. 새 기본값 =ChoiceAttributeText('상태')를 입력하십시오. 모든 요소에 기본값 복사를 클릭하여 모든 요소를 업데이트하십시오.
  6. 모듈 > 요구사항을 클릭하고 최상위 폴더를 선택하십시오.
  7. 최상위 폴더의 설명 속성에는 XML 템플리트 코드가 포함되어 있습니다. 설명 속성의 편집 단추를 클릭하고 텍스트 매개변수에 워크플로우 지시사항을 쓰십시오. 예:
     <?xml version="1.0" encoding="UTF-8"?> 
    <texts> 
    <item id="47" text="If the requirement has proven to be a valid request, status should be changed to Accepted. If the requirement is not valid, change status to either Rejected or Clarify."/> 
    <item id="48" text="The requirements with the highest priority should be planned to a release and be estimated with regards to cost. Change status for these requirements to Planned and select a user as responsible for the requirement."/> 
    <item id="49" text="This requirement is ready for implementation. When implementation is started, change status to Started."/> 
    <item id="50" text="This requirement is being implemented. When done, change status to Completed."/>
    <item id="51" text="This requirement is completed and is ready for test. If the requirements passes the test, change status to Verified."/> 
    <item id="52" text ="This requirement is ready for delivery."/> 
    <item id="53" text="This requirement is rejected. Enter a reason for the rejection in the Comments attribute."/>
    <item id="54" text="This requirement needs to be clarified."/>
     </texts>

    XML 코드의 항목 ID는 선택사항 항목의 데이터베이스 ID입니다. 이 예제에서는 47개가 새로 작성 상태에 해당하고 48개가 허용됨 상태에 해당합니다.

  8. 확인을 클릭하여 워크플로우 지시사항을 저장하십시오.
새 요구사항에 대한 워크플로우 지시사항의 예제
주: 비즈니스 규칙 컨테이너 속성에 워크플로우 지시사항을 표시하려면 상태를 업데이트해야 합니다.

피드백