반응형
Process Simulation Overview

Business process simulation until now has seldom been implemented. Because of tight development schedules, the plan to simulate the current “as-is” and desired “should-be” processes typically falls victim of having too little time. Simulation is a powerful tool and it is worth the time spent doing simulations before going into production. It helps run “what-if” experiments to see what the impact will be of:

• Reducing or increasing the number of people assigned to an activity.
• A sudden increase of the number of instances flowing through the process.
• Changing the approval ratio from 70% approved / 30% disapproved to a worse case 50% approved / 50% disapproved.

This can help avoid the embarrassment and cost of launching a new process with a flaw that only becomes obvious on day 3 of production. It can verify that the desired output meets the metric objectives and easily finds bottlenecks in processes and leads to breakthroughs.



Process Simulation Lab

This exercise will demonstrate how a business analyst can analyze and propose changes to business processes using Oracle BPM Studio.

The objectives of this exercise are

• Run simulations on business processes and analyze the following results.
   - Throughput and process analysis
   - Activity-based costing
   - Resource allocation
   Make changes to the process to optimize the flow

The simulation algorithm is based on discrete events and can process events in a serial fashion as they occur in time. You need to create Process Simulation Models and Project Simulation Definitions to run simulation. The Process Simulation Model captures a “What-if scenario” for a particular business process model. You can have multiple Process Simulation Models for a particular business process model. This allows you to create different simulations based on different combinations of resource allocations and activity behavior. The Project Simulation Definition is used to take the dependency and shared resources across processes in to account. It consists of Process Simulation Models of multiple processes.

The simulation does not execute the actual code of each activity within the process. However, by configuring parameters within the models and definitions, you can mimic the behavior of your business process. You need to ask the right questions to get the right response! In order to perform simulation the process needs to be complete and semantically valid.


Creating Process Simulation Models

"QuoteProcessLab - Simulations - Simulation Models" 에서 오른쪽 버튼 클릭 - "New Process Simulation" 클릭.


Simulation Model name: NormalLoad


"Start" Flow Nodes

Distribution Type: Constant
Period: 5 Minutes



"Approvals Outcome" (Gateway) Flow Nodes

분기의 흐름 정도를 조정합니다. 막대바를 조종합니다.

Enter Quote Details: 0.0
Finalize Contracts: 1.0

무조건 Finalize Contracts 쪽으로 흐르게 되는군요.



"Approve Deal" Flow Nodes

Duration 탭
   Distribution type: Normal
   Mean: 20 minutes
   Standard Devlation: 20 seconds



Cost 탭
   Cost: $100



나머지 흐름들도 아래와 같이 설정 합니다.
























Creating Process Simulation Models

"Simulation Definitions" 에서 마우스 오른쪽 버튼 클릭 - "New Simulation" 클릭.



Simulation Definition: AsIsSalesQuoteSimulation



Duration: 10 hours

"Include in simulation" 칼럼 아래의 채크 박수 선택.



Resources 탭으로 이동합니다.

+ 버튼을 클릭하고 아래와 같이 정보를 입력합니다.

Roles 부분을 더블클릭 하면 나오는 돋보기 버튼을 클릭하여 역할을 선택합니다.



Approvers 선택.



아래와 같이 나머지 리소스를 추가합니다.



Running the simulation

JDeveloper 아래쪽 영역에 Simulations 탭을 선택합니다. (없다면 View - Simulations)

"Run to end" 버튼을 클릭합니다. 한번에 시뮬레이션이 끝나버립니다.



아래와 같이 (비슷한) 결과가 나옵니다.




Analyze the Simulation Results

아래와 같은 부분을 조절하여 결과를 여러가지 화면으로 볼 수 있습니다.





반응형
//
반응형
※ 문서는 11.1.1.3(11g PS2)로 만들어져 있는데 저는 11.1.1.4(11g PS3)로 하였습니다. 화면(UI)이 약간 다를 수 있습니다.

Introduction

The first exercise is based on building the Sales Quote Process model. You first create an outline of the process flow as a BPMN model using the Oracle BPM Studio. Oracle JDeveloper with the BPMN Editor extension is called Oracle BPM Studio. Implementation details are added in a later exercise.

The Sales Quote scenario is as follows:
• The business process implements a solution for Sales Representatives to submit Sales Quotes and manage all the approvals within a particular Sales organization. A quick recap on the business process definition and its flow is detailed below.
• The Business Process is triggered by a Sales Representative creating a Task to Enter the Quote details in the “Enter Quote” interactive step.
• The next step is to determine the list of approvers for the Quote using business rules and also to determine whether additional review by Business Practices is required. This is accomplished through the “Determine Approval Rules” step.
• After the rules have been evaluated, the next step is to check whether “Business Practices Review” is required and if “yes” go through the “Business Practices Review” step.
• The Quote then has to get approved for the deal structure and terms. After the “Business Practices Review” has been completed, the process instance moves to the “Approve Quote” and “Approve Terms” activities that are executed in parallel.
• The “Approve Quote” activity is executed by approvers in the “Approvers” role and the “Approve Terms” by individuals that have been assigned the “Contracts” role in the organization.
• Once these 2 steps in the business process have been completed successfully, the process instance moves on to the “Finalize Contracts” step and waits for its final approval by an individual in the “Contracts” role.

The complete flow is shown in the figure below.




Creating the BPM Project for Quote Process

JDevelpoer 메뉴에서 File - New 클릭.



Applications 카테고리에서 BPM Application 선택.



Application Name은 SalesQuoteLab 입력.



처음 어플리케이션을 만들면 하나의 프로젝트도 동시에 생성하는군요...

Project Name에 QuotePorcessLab 입력. Next 클릭.



Composite With BPMN Process 선택. Finish 클릭.


 

Creating the high-level outline of the BPMN process

프로젝트가 만들어지고 아주 조금 기다리면 Create BPMN Process 마법사(?) 창이 뜹니다.

Name에 ReuqestQuoteLab 입력. Type은 Manual Process 선택. Finish 버튼 클릭.



아래와 같이 Start와 End 지점과 하나의 기본 유저 테스트가 하나 생성되어 있습니다.

마치 무슨 설계할때 쓰는 그 무엇(기억이...) 같이 생겼습니다. 행으로는 롤(역할)이 있습니다.

UserTask 액티브를 더블클릭.



Name을 Enter Quote Details 변경.



롤(역할)을 추가해보겠습니다.

BPM Project Navigator를 봐야 하는데 화면에 없다면 메뉴중 View - BPM Project Navigator 를 선택해서 보이게 합니다.



QuoteProcessLab - Oranization 에서 오른쪽 버튼 클릭 후 Open 클릭.



기본으로 추가 되어있는 "Role"을 선택 후 Edit 버튼 클릭.



Name을 SalesRep로 변경.



이번에는 Role를 추가해봅시다. Add 버튼 클릭.



Name에 Approvers 입력.



Business PracticesContracts도 추가해줍니다.



이제 Organization 편집창을 닫고, 다시 RequestQuoteLab 화면으로 갑니다.

만약 닫아서 없다면 BPM Project Navigator에서 QuoteProcessLab - Processes - RequestQuoutLab을 선택합니다.



화면의 빈 공간에서 마우스 오른쪽 버튼 클릭. Add Role 클릭



Business Practices 선택. OK 버튼 클릭.



화면 왼쪽에 롤(역할)이 하나 추가 되었습니다.



액티브를 추가할 것입니다. 만약 화면 오른쪽에 Component Palette 창이 보이지 않으면 View 에서 보이게 합시다.



User 액티브를 "Enter Quote Details" 액티브와 End 사이의 선에 드래그 앤 드랍합니다.

액티브를 드래그해서 선 위에 올려 놓으면 선 색이 파란색으로 바뀌게 됩니다.

드랍을 하면 두 액티브 사이에 삽입이 됩니다.



Name에 Business Practices Review 입력. OK 버튼 클릭.



"Business Practices Review" 액티브와 "End" 액티브를 "Business Practices" 롤 영억으로 옮깁니다.



"Approvers"와 "Contracts" 롤 영역을 추가합니다.



User 액티브를 Approvers 영역에 추가합니다.



Name은 Approve Deal 입력. OK 버튼 클릭.



기본 "Business Practices Review" 액티브에서 End로 가던 선을 삭제합니다.



Sequence Flow 를 "Etner Quote Details" 액티드에서 "Business Practices Review" 액티브로 연결합니다.



같은 방법으로 "Approve Deal" 액티브와 End와 연결합니다.



아래와 같이 "Approve Terms"와 "Finalize Contracts" 유저 액티브를 추가 하고 선을 연결합니다.



"Finalize Contracts" 액티브와 End 사이에 Service Task 액티브를 추가합니다.

Name은 Save Quote 입력.




Adding conditional split for Business Practices Review Step

조건분기 액티브를 사용 해봅시다!

Exclusive(XOR) 액티브를 "Business Practices Review" 액티브 왼쪽 공간에 추가합니다.



Name은 Is Business Practices Review required?



"Enter Quote Details" 액티브에서 "Business Practices Review" 액티브로 가는 선(흐름)을 방금 추가한 XOR 액티브로 옮깁니다.

화살표 끝쪽에서 드래그 하면 됩니다.



XOR 액티브에서 마우슨 오른쪽 버튼 클릭. Add conditional sequence flow 클릭.



"Business Practices Reivew" 액티브로 선을 클릭합니다.



다시 XOR 액티브에서 오른쪽 버튼 클릭. Add default sequence flow 클릭.



"Approve Deal" 액티브와 연결합니다.



default sequence flow는 선에 표시가 되어있는 것을 확인 할 수 있습니다. (이게 처음에는 햇갈리더라구요...)



첫번째 추가했던 선(흐름)을 더블클릭 합니다.



Name을 Yes로 변경합니다.



두번째 선(default)을 더블클릭 합니다.



Name을 No로 변경합니다.



Parallel 액티브를 "Approve Deal" 오른쪽 공간에 추가합니다.



Name은 Approvals로 합니다.



두개의 액티브가 생기는데 다른 한쪽의 액티브 이름을 Approvals Merge로 변경합니다.



처음 XOR와 유저 액티브에서 "Approve Deal" 액티브로 갔던 선(흐름) 2개를 Approvals 로 옮깁니다.



"Approve Deal" 액티브에서 "Approve Terms" 액티브로 가는 선을 삭제합니다.



"Approve Deal" 액티브를 두 패러럴(Parallel) 사이로 삽입합니다.



"Approvals" 액티브에서 마우스 오른쪽 버튼 클릭. Add default sequence flow 클릭.



"Approvals Merge" 로 선을 연결합니다.



"Approve Terms" 액티브에서 "Finalize Contracts" 액티브로 가는 선을 삭제 후, 아래와 같이 삽입합니다.



"Approvals Merge" 액티브에서 "Finalize Contracts" 액트로 가는 선(흐름)을 연결합니다.



아래와 같은 화면이 나왔습니다. (각 롤 영역 안에 액티브가 들어가 있는지 확인)




Adding loop for redo of Quote

주문 승인을 거절했을 때 다시 되돌아가는 로직을 넣어봅시다!

"Buisness Practices Review" 액티브 오른쪽 공간에 Exclusive(XOR) 액티브를 추가합니다.

Name은 Business Practices Outcome.



"Business Practices Review" 액티브에서 "Approvals" 액티브로 가던 선을 방금 추가한 XOR 액티브로 옮깁니다.



방금 추가한 XOR 액티브에서 마우스 오른쪽 버튼 클릭. Add conditional sequence flow 클릭.



"Enter Quote Details" 액티브로 선을 연결 한 후, Name은 Business Practices Rejected로 설정합니다.



다시 오른쪽 버튼 클릭. Add default sequence flow 클릭.



"Approvals" 액티브로 선을 연결 후, Name은 Business Practices Approved로 설정합니다.



"Approvals Outcome" 액티브와 "Finalize Contracts" 액티브 사이에 XOR 액티브(Name: Approvals Outcome)를 추가 후 아래와 같이 흐름을 추가합니다.

default sequence flow: "Approvals Outcome" → "Finalize Contracts", Name: Approved

conditional sequence flow: "Approvals Outcome" → "Enter Quote Details", Name: Deal or Terms Rejected



아직은 속 내용을 완벽히 구한하지 않았기 때문에 경고(느낌표)가 많이 뜰 겁니다. ㅎㅎ







반응형
//
반응형
These steps must be completed before you run the Sales Quote Demo composite application. If you do not complete these steps, you will not be able to run the application.



Create Domain

${MW_HOME}/oracle_common/common/bin/config.sh

규성요소 선택. BPM, SOA, EM, BAM



도메인 네임은 bpm_domain으로 하였습니다.



개발 모드로 설정.



RCU로 스키마를 만들 때 접두어는 "BPM"으로 하였습니다.



포트 변경을 위하여 추가 설정을 합니다.



관리서버의 이름은 bpmAdmin, 포트는 7101로 설정 하였습니다.



"soa_server1"는 8101 포트, "bam_server1"는 9101 포트로 설정 하였습니다.



도메인 생성 완료!




Create Quote Schema

관리자 계정으로 quote 계정을 생성합니다.
 
$ sqlplus sys/******** as sysdba @create_user.sql quote quote

SQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 25 14:15:02 2011

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

old   1: DROP USER &&1 CASCADE
new   1: DROP USER quote CASCADE
DROP USER quote CASCADE
          *
ERROR at line 1:
ORA-01918: user 'QUOTE' does not exist

old   1: CREATE USER &&1 IDENTIFIED BY &&2
new   1: CREATE USER quote IDENTIFIED BY quote

User created.

old  21: TO &&1
new  21: TO quote

Grant succeeded.

old   3: TO &&1
new   3: TO quote

Grant succeeded.

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

quote 계정으로 테이블과 데이터를 만듭니다.

$ sqlplus quote/quote @quote.sql

SQL*Plus: Release 11.2.0.1.0 Production on Mon Apr 25 14:21:29 2011

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

DROP TABLE QUOTE.CONTACTS CASCADE CONSTRAINTS
                 *
ERROR at line 1:
ORA-00942: table or view does not exist

Table created.

 REFERENCES QUOTE.OPPORTUNITY (OPPORTUNITYID)
                  *
ERROR at line 4:
ORA-00942: table or view does not exist

DROP TABLE QUOTE.HTMLDB_PLAN_TABLE CASCADE CONSTRAINTS
                 *
ERROR at line 1:
ORA-00942: table or view does not exist

Table created.

ALTER TABLE QUOTE.OPPORTUNITY DROP PRIMARY KEY CASCADE
*
ERROR at line 1:
ORA-00942: table or view does not exist

DROP TABLE QUOTE.OPPORTUNITY CASCADE CONSTRAINTS
                 *
ERROR at line 1:
ORA-00942: table or view does not exist

Table created.

Index created.

Table altered.

ALTER TABLE QUOTE.PRODUCT DROP PRIMARY KEY CASCADE
*
ERROR at line 1:
ORA-00942: table or view does not exist

DROP TABLE QUOTE.PRODUCT CASCADE CONSTRAINTS
                 *
ERROR at line 1:
ORA-00942: table or view does not exist

Table created.

Index created.

Table altered.

ALTER TABLE QUOTE.PS_TXN DROP PRIMARY KEY CASCADE
*
ERROR at line 1:
ORA-00942: table or view does not exist

DROP TABLE QUOTE.PS_TXN CASCADE CONSTRAINTS
                 *
ERROR at line 1:
ORA-00942: table or view does not exist

Table created.

Index created.

Table altered.

ALTER TABLE QUOTE.TERM DROP PRIMARY KEY CASCADE
*
ERROR at line 1:
ORA-00942: table or view does not exist

DROP TABLE QUOTE.TERM CASCADE CONSTRAINTS
                 *
ERROR at line 1:
ORA-00942: table or view does not exist

Table created.

Index created.

Table altered.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

Commit complete.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

1 row created.

Commit complete.

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

5개의 테이블과 데이터가 생성됩니다.







Set up data source in WebLogic server


웹로직 콘솔에 접속합니다.

메뉴에서 Services - Data Sources  클릭.



New 버튼 클릭 - Generic Data Source 클릭



Name: quoteDS
JNDI Name: jdbc/quoteDS
Database Type: Oracle

Next 버튼 클릭.



Database Driver: Oracle's Driver (Thin XA) for Instance connectinos; Versions: 9.0.1 and later

Next 버튼 클릭.



Next 버튼 클릭.



접속 정보를 입력 후  Next 버튼 클릭.



Test Configuration 버튼을 클릭하여 접속 테스트가 성공해야 합니다.

Next 버튼 클릭.



타겟은 bpmAdmin, soa_server1 을 선택합니다.

Finish 클릭.



메뉴에서 Deployments 클릭.



DbAdapter 클릭.



Configuration 탭 클릭 - Outbound Connection Pools 클릭.

New 버튼 클릭.



javax.resource.cci.ConnectionFactory 선택 후 Next 클릭.



JNDI Name: eis/DB/quoteDS

Finish 클릭.


Adapter 정보를 가지게 되는 플랜(Plan) 파일을 지정하게 되는데 이게 하나의 프로그램에 여러개의 soa 도메인을 돌리게 되면 플랜 파일이 겹치게 됩니다.

기본 ${MW_HOME}/Oracle_SOA1/soa/connectors 가 기본 디렉토리가 됩니다.

저는 여러 SOA 도메인을 함께 돌리고 있기 때문에 이 플랜 파일들도 각각 다른 디렉토리에 저장했습니다.

예] connectors/domains/bpm_domains/{플랜파일들}

※ 이거 꼬이면 골치 아픕니다 -_-



저장 되었습니다.



다시 Outbound Connection Pool 탭까지 가서 방금 만든 eis/DB/quoteDS 를 선택합니다.



마지막 xADataSourceName 오른쪽의 Property Value 공백 부분을 클릭하면 입력할 수 있는 Text 필드가 나옵니다.

jdbc/quoteDS 입력 후 엔터!!



Save 버튼을 클릭합니다.



※ Adapter(Database Adpater, Jms Adapter, FTP Adapter 등등..)를 수정하면 꼭 Update 해줘야합니다.

Deployments 에서 DbAdapter 를 선택(체크)한 후 Update 버튼을 클릭합니다.



"Redeploy this application using the following deployment files" 선택 후 Finish 버튼 클릭.





Perform Demo Seeding of Users & Groups

이 BPM 교육을 수행하려면 유저를 등록해야 합니다.



적당한 곳에 압축을 풉니다.

$ unzip demo-community.zip
Archive:  demo-community.zip
   creating: demo-community/input/
  inflating: demo-community/input/default-demo-community.xml
  inflating: demo-community/input/DemoUserCommunity.xsd
  inflating: demo-community/SOATestDemoApp.ear
  inflating: demo-community/README.txt
  inflating: demo-community/build.xml
  inflating: demo-community/build.properties
   creating: demo-community/scripts/
   creating: demo-community/scripts/.ade_path/
  inflating: demo-community/scripts/.ade_path/WLSMbeanGrantSOAAppRole.py
  inflating: demo-community/scripts/.ade_path/InvokeSeedDemoCommunity.py
  inflating: demo-community/scripts/WLSMbeanGrantSOAAppRole.py
  inflating: demo-community/scripts/InvokeSeedDemoCommunity.py


ant 빌드를 시작합니다.

ant seedDemoUsers -Dbea.home=<MWHOME> // 보통은 {어딘가}/Oracle/Middleware
    -Doracle.home=<ORACLEHOME> // 끝이 Oracle_SOA1 경로. 보통은 {어딘가}/Oracle/Middleware/Oracle_SOA1
    -Ddomain.home=<MWHOME>/user_projects/domains/<Domain Name> // 도메인 디렉토리 경로
    -Dtarget=<Managed Server Name>
    -Dadmin.url=t3://<HOST>:<Admin Server Port>
    -Dserver.url=http://<HOST>:<Managed Server Port>
    -Dadmin.name=<Admin Name>
    -Dadmin.pwd=<Admin Password>

경로는 자신의 환경에 맞게 수정합니다.

총 3개의 작업이 수행 되는군요..

$ /home/weblogic/app/modules/org.apache.ant_1.7.1/bin/ant seedDemoUsers
      -Dbea.home=/home/weblogic/app
      -Doracle.home=/home/weblogic/app/Oracle_SOA1
      -Ddomain.home=/home/weblogic/user_projects/domains/bpm_domain
      -Dtarget=soa_server1
      -Dadmin.url=t3://localhost:7101
      -Dserver.url=http://localhost:8101
      -Dadmin.name=weblogic
      -Dadmin.pwd=welcome1

Buildfile: build.xml

seedDemoUsers:

deploySeedDemoApp:
     [echo] Deploying SOATestDemoApp.....
     [echo] Deploy Arg Line : ${deploy.arg.line}
     [java] weblogic.Deployer invoked with options:  -adminurl t3://localhost:7101 -username weblogic -deploy -name SOATestDemoApp -source ./SOATestDemoApp.ear -targets soa_server1
     [java] <Apr 25, 2011 4:46:54 PM KST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, SOATestDemoApp [archive: /home/weblogic/app/demo-community/./SOATestDemoApp.ear], to soa_server1 .>
     [java] Task 7 initiated: [Deployer:149026]deploy application SOATestDemoApp on soa_server1.
     [java] Task 7 completed: [Deployer:149026]deploy application SOATestDemoApp on soa_server1.
     [java] Target state: deploy completed on Server soa_server1
     [java]

seedDemoCommunity:
     [exec] *****************************************************
     [exec] ** Setting up SOA specific environment...
     [exec] *****************************************************
     [exec] EXTRA_JAVA_PROPERTIES= -da:org.apache.xmlbeans...
     [exec] .
     [exec] LD_LIBRARY_PATH=/home/weblogic/app/patch_wls1034/profiles/default/native:/hom.....................    
     [exec] .
     [exec] USER_MEM_ARGS=-Xms768m -Xmx1536m -XX:PermSize=256m -XX:MaxPermSize=512m
     [exec] .
     [exec] *****************************************************
     [exec] ** End SOA specific environment setup
     [exec] *****************************************************
     [exec] *******************************************************
     [exec] ** SOA specific environment is already set, skipping...
     [exec] *******************************************************
     [java]
     [java] Initializing WebLogic Scripting Tool (WLST) ...
     [java]
     [java] Jython scans all the jar files it can find at first startup. Depending on the system, this process may take a few minutes to complete, and WLST may not return a prompt right away.
     [java]
     [java] Welcome to WebLogic Server Administration Scripting Shell
     [java]
     [java] Type help() for help on available commands
     [java]
     [java] --------------------------- Demo Community  ----------------------------------
     [java] serverURL: localhost:8101
     [java]
     [java] Status :
     [java] 200 OK
     [java] Users/Groups Seeded :
     [java] <html>
     [java] <head>
     [java] <title>Demo User Community</title>
     [java] <link rel="stylesheet" type="text/css" href="stylesheet.css"/>
     [java] </head>
     [java] <body>
     [java] <table border="1" style="background-color:#C8C8C8" align="center" width="70%">
     [java] <tr>
     [java] <td>
     [java] <H1 ALIGN="CENTER">Seed Demo Community</H1>
     [java] <BR><B>Users : </B>
     [java] demoadmin
     [java] cdickens
     [java] wfaulk
     [java] sfitzger
     [java] jstein
     [java] istone
     [java] jcooper
     [java] mtwain
     [java] jlondon
     [java] ltolstoy
     [java] fkafka
     [java] szweig
     [java] mmitch
     [java] jausten
     [java] achrist
     [java] rsteven
     [java] cdoyle
     [java] wshake
     [java] JVerne
     [java] EHEMING
     [java] VHUGO
     [java] <BR><B>Groups : </B>
     [java] Supervisor
     [java] LoanAnalyticGroup
     [java] LoanAgentGroup
     [java] California
     [java] WesternRegion
     [java] EasternRegion
     [java] CentralRegion
     [java] RegionalOffices
     [java] Executives
     [java] </td>
     [java] </tr>
     [java] </table>
     [java] </body>
     [java] </html>
     [java]

grantDemoAppRoles:
     [exec] *****************************************************
     [exec] ** Setting up SOA specific environment...
     [exec] *****************************************************
     [exec] EXTRA_JAVA_PROPERTIES= -da:org.apache.xmlbeans...
     [exec] .
     [exec] LD_LIBRARY_PATH=/home/weblogic/app/patch_wls1034/profiles/default/native:/home......
     [exec] .
     [exec] USER_MEM_ARGS=-Xms768m -Xmx1536m -XX:PermSize=256m -XX:MaxPermSize=512m
     [exec] .
     [exec] *****************************************************
     [exec] ** End SOA specific environment setup
     [exec] *****************************************************
     [exec] *******************************************************
     [exec] ** SOA specific environment is already set, skipping...
     [exec] *******************************************************
     [echo] oracle.home location is /home/weblogic/app/Oracle_SOA1
     [echo]  Classpath  = /home/weblogic/app/oracle_common/modules/oracle.dms.......
     [java]
     [java] Initializing WebLogic Scripting Tool (WLST) ...
     [java]
     [java] Welcome to WebLogic Server Administration Scripting Shell
     [java]
     [java] Type help() for help on available commands
     [java]
     [java] --------------------------- Grant AppRoles to Demo Community  ----------------------------------
     [java] Connecting to t3://localhost:7101 with userid weblogic ...
     [java] Successfully connected to Admin Server 'bpmAdmin' that belongs to domain 'bpm_domain'.
     [java]
     [java] Warning: An insecure protocol was used to connect to the
     [java] server. To ensure on-the-wire security, the SSL port or
     [java] Admin port should be used instead.
     [java]
     [java] Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
     [java] For more help, use help(domainRuntime)
     [java]

BUILD SUCCESSFUL
Total time: 21 seconds




Deploy the Sales Quote Demo project

A BPM project is simply a SOA composite project that also contains a BPM process component. Every BPM project is contained within a composite. To deploy the BPM project, you deploy the composite. Complete the following section.


Create a Connection to Oracle WebLogic Server

JDeveloper 11.1.1.40 을 실행합니다.

FIle - New 클릭.



Categories: General - Connections
Items: Application Server Connection



Connection Name: bpm_domain (전 이걸로 했슴)



계정 정보 입력.



관리 서버 정보 입력.



테스트 후 Finish.



Resource Palette - IDE Connections 에 보면 아래와 같이 등록한 서버의 정보가 나옵니다.




Deploying Composites to the Application Server



파일의 받아서 압축을 푼 후 (어플리케이션 디렉토리임) 적당한 곳에 풉니다.

JDeveloper 에서 어플리케이션을 불러옵니다.



SalesQuoteLab.jws(어플리케이션 파일) 선택.



QuoteProcessLab 프로젝트를 배치(Deploy) 합니다.



Deploy to Application Server 선택.


수정 아이디(revision id)가 같을 경우 덮어쓰기 체크.



존재하는 어플리케이션이면 덮어쓰기 체크.

연관된 Taskflow 프로젝트 모두 같이 배치.


타겟은 bpm_domain.



파티션은 default.



Finish 클릭.



배치 완료 후 em에서 확인해보면 아래와 같이 배치가 되어있습니다.





Set up of Tier-1 Approval Groups

BPM 워크스페이스(BPM Workspace)에 관리자로 접속합니다.



우측 상단에 Administration 클릭.



왼쪽 관리자 메뉴에서 Approval Groups 클릭.



Groups 오른쪽 추가 버튼 클릭 - Create Static 클릭.



Name: Tier1ApprovalGroup

Apply 버튼 클릭.



Members 추가 버튼 클릭.

Member: cdoyle

OK 버튼 클릭



Apply 버튼 클릭.





Map LDAP users to process roles

The final step in configuration is to map the process roles to real users in your LDAP system. You populated your system with the Demo Community in an earlier step. Now, set the roles for the process to those users.

※ 위에서 QuoteProcessLab 프로젝트를 배치(deply)하지 않으면 수행할 수 없습니다.

bpm workspace 접속.

왼쪽 상단에 Administration 클릭.



Roles 설정에서 아래와 같이 유저가 설정되어 있는지 확인합시다.





반응형
//