docs(10_Wiki): 위키 전체 재구성 — Topic_* 폴더를 4개 카테고리로 통합 + 대규모 중복 제거
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를 Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류. - 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로 자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거, 동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거. - 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming, Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business, Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로, 나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는 title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백). 원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지. - 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서. - 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는 지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지. - Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경. - 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
This commit is contained in:
@@ -0,0 +1,224 @@
|
||||
---
|
||||
id: wiki-2026-0508-bpm
|
||||
title: BPM (Business Process Management)
|
||||
category: 10_Wiki/Topics
|
||||
status: verified
|
||||
canonical_id: self
|
||||
aliases: [Business Process Management, Workflow Automation, Process Orchestration]
|
||||
duplicate_of: none
|
||||
source_trust_level: A
|
||||
confidence_score: 0.9
|
||||
verification_status: applied
|
||||
tags: [enterprise, workflow, bpmn, orchestration]
|
||||
raw_sources: []
|
||||
last_reinforced: 2026-05-10
|
||||
github_commit: pending
|
||||
tech_stack:
|
||||
language: BPMN 2.0 / Java / TypeScript
|
||||
framework: Camunda 8 / Temporal / AWS Step Functions
|
||||
---
|
||||
|
||||
# BPM (Business Process Management)
|
||||
|
||||
## 매 한 줄
|
||||
> **"매 business process 를 매 explicit model 로 만들어 매 measure / improve / automate."**. 1990s 의 BPR (re-engineering) → 2000s BPMS workflow engine → 2010s BPMN 2.0 표준 → 2026 현재 매 cloud-native orchestration (Camunda 8, Temporal, Step Functions) 가 매 microservice + AI agent 의 process backbone. 매 별도로 BPM = Beats Per Minute (music tempo) 도 동음이의 — 매 본 문서는 매 business process 중심.
|
||||
|
||||
## 매 핵심
|
||||
|
||||
### 매 BPM lifecycle
|
||||
1. **Design**: BPMN diagram, swim lanes, gateway logic.
|
||||
2. **Modeling**: simulation, validation.
|
||||
3. **Execution**: workflow engine 이 매 instance 실행.
|
||||
4. **Monitoring**: KPI, SLA, bottleneck.
|
||||
5. **Optimization**: process mining, AI suggestions.
|
||||
|
||||
### 매 BPMN 2.0 element
|
||||
- **Activity** (rounded rect): task — user task, service task, script task.
|
||||
- **Event** (circle): start, intermediate, end (timer, message, error).
|
||||
- **Gateway** (diamond): exclusive (XOR), parallel (AND), inclusive (OR).
|
||||
- **Sequence flow** (arrow).
|
||||
- **Pool / Lane**: organizational boundary.
|
||||
- **Data object**: process variable.
|
||||
|
||||
### 매 응용
|
||||
1. Loan approval workflow (origination → underwriting → decision).
|
||||
2. Order-to-cash (e-commerce → fulfillment → invoicing).
|
||||
3. Employee onboarding (HR forms → IT provisioning → training).
|
||||
4. Insurance claim processing (intake → adjuster → payout).
|
||||
5. AI agent orchestration (매 LLM agent 의 매 multi-step workflow).
|
||||
|
||||
## 💻 패턴
|
||||
|
||||
### Camunda 8 — BPMN service task (Zeebe)
|
||||
```typescript
|
||||
import { ZBClient } from 'zeebe-node';
|
||||
|
||||
const zbc = new ZBClient();
|
||||
|
||||
zbc.createWorker({
|
||||
taskType: 'charge-credit-card',
|
||||
taskHandler: async (job) => {
|
||||
const { orderId, amount, customerId } = job.variables;
|
||||
try {
|
||||
const result = await stripe.charges.create({
|
||||
amount, currency: 'usd', customer: customerId,
|
||||
});
|
||||
return job.complete({ chargeId: result.id, paid: true });
|
||||
} catch (e) {
|
||||
return job.fail(`Stripe error: ${e.message}`);
|
||||
}
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
### BPMN 2.0 XML — order process (sketch)
|
||||
```xml
|
||||
<bpmn:process id="OrderProcess" isExecutable="true">
|
||||
<bpmn:startEvent id="Start" />
|
||||
<bpmn:serviceTask id="ValidateOrder" name="Validate Order"
|
||||
zeebe:taskDefinition type="validate-order" />
|
||||
<bpmn:exclusiveGateway id="StockGateway" name="In stock?" />
|
||||
<bpmn:serviceTask id="ChargeCard" zeebe:taskDefinition type="charge-credit-card" />
|
||||
<bpmn:userTask id="ManualReview" name="Manual review" />
|
||||
<bpmn:endEvent id="End" />
|
||||
<bpmn:sequenceFlow source="Start" target="ValidateOrder" />
|
||||
<bpmn:sequenceFlow source="ValidateOrder" target="StockGateway" />
|
||||
<bpmn:sequenceFlow source="StockGateway" target="ChargeCard">
|
||||
<bpmn:conditionExpression>=stockAvailable</bpmn:conditionExpression>
|
||||
</bpmn:sequenceFlow>
|
||||
<bpmn:sequenceFlow source="StockGateway" target="ManualReview">
|
||||
<bpmn:conditionExpression>=not(stockAvailable)</bpmn:conditionExpression>
|
||||
</bpmn:sequenceFlow>
|
||||
</bpmn:process>
|
||||
```
|
||||
|
||||
### Temporal — code-first workflow
|
||||
```typescript
|
||||
import { proxyActivities, sleep } from '@temporalio/workflow';
|
||||
import * as activities from './activities';
|
||||
|
||||
const { validateOrder, chargeCard, shipOrder } =
|
||||
proxyActivities<typeof activities>({
|
||||
startToCloseTimeout: '1 minute',
|
||||
retry: { maximumAttempts: 5 },
|
||||
});
|
||||
|
||||
export async function orderWorkflow(order: Order): Promise<void> {
|
||||
await validateOrder(order);
|
||||
const charge = await chargeCard(order.amount, order.customerId);
|
||||
await sleep('5 minutes'); // hold before fulfillment
|
||||
await shipOrder(order.id, charge.id);
|
||||
}
|
||||
```
|
||||
|
||||
### AWS Step Functions — state machine JSON
|
||||
```json
|
||||
{
|
||||
"StartAt": "Validate",
|
||||
"States": {
|
||||
"Validate": {
|
||||
"Type": "Task",
|
||||
"Resource": "arn:aws:lambda:us-east-1:123:function:Validate",
|
||||
"Next": "InStock?"
|
||||
},
|
||||
"InStock?": {
|
||||
"Type": "Choice",
|
||||
"Choices": [
|
||||
{ "Variable": "$.inStock", "BooleanEquals": true, "Next": "Charge" }
|
||||
],
|
||||
"Default": "ManualReview"
|
||||
},
|
||||
"Charge": { "Type": "Task", "Resource": "arn:.../Charge", "End": true },
|
||||
"ManualReview": { "Type": "Task", "Resource": "arn:.../HumanReview", "End": true }
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Process mining — discover from logs
|
||||
```python
|
||||
import pm4py
|
||||
|
||||
log = pm4py.read_xes("orders_event_log.xes")
|
||||
process_tree = pm4py.discover_process_tree_inductive(log)
|
||||
bpmn = pm4py.convert_to_bpmn(process_tree)
|
||||
pm4py.view_bpmn(bpmn)
|
||||
|
||||
# Conformance check
|
||||
diagnostics = pm4py.conformance_diagnostics_token_based_replay(log, bpmn)
|
||||
print(f"Fitness: {diagnostics['fitness']:.2f}")
|
||||
```
|
||||
|
||||
### Saga pattern (compensation)
|
||||
```typescript
|
||||
export async function bookTripSaga(req: TripReq) {
|
||||
const compensations: Array<() => Promise<void>> = [];
|
||||
try {
|
||||
const flight = await bookFlight(req);
|
||||
compensations.push(() => cancelFlight(flight.id));
|
||||
const hotel = await bookHotel(req);
|
||||
compensations.push(() => cancelHotel(hotel.id));
|
||||
const car = await bookCar(req);
|
||||
return { flight, hotel, car };
|
||||
} catch (e) {
|
||||
for (const undo of compensations.reverse()) await undo();
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Human task (UserTask) form
|
||||
```typescript
|
||||
zbc.createWorker({
|
||||
taskType: 'manual-approval',
|
||||
taskHandler: async (job) => {
|
||||
// 매 push to UI inbox; resolve when human submits decision
|
||||
await pushToInbox({
|
||||
taskId: job.key,
|
||||
assignee: job.customHeaders.assignee,
|
||||
formSchema: job.customHeaders.formKey,
|
||||
});
|
||||
// job is completed by REST callback when human acts
|
||||
},
|
||||
});
|
||||
```
|
||||
|
||||
## 매 결정 기준
|
||||
| 상황 | Engine |
|
||||
|---|---|
|
||||
| Visual BPMN, business analyst editing | Camunda 8 / Activiti |
|
||||
| Code-first, complex retry/long-running | Temporal |
|
||||
| AWS-only stack, simple flow | Step Functions |
|
||||
| Open-source self-host, light | n8n / Prefect |
|
||||
| AI agent multi-step | Temporal + LangGraph |
|
||||
|
||||
**기본값**: matrix:
|
||||
- enterprise w/ analyst → Camunda 8
|
||||
- engineer-driven, durability-critical → Temporal
|
||||
- serverless on AWS → Step Functions
|
||||
|
||||
## 🔗 Graph
|
||||
- 부모: [[Workflow-Automation]] · [[Enterprise-Architecture]]
|
||||
- 변형: [[State-Machine]]
|
||||
- 응용: [[Temporal]]
|
||||
- Adjacent: [[Microservices]] · [[Event-Driven-Architecture]]
|
||||
|
||||
## 🤖 LLM 활용
|
||||
**언제**: long-running multi-step process, human-in-loop required, audit trail 필수, retry/compensation 복잡, AI agent multi-tool orchestration.
|
||||
**언제 X**: 매 simple synchronous CRUD, 매 sub-100ms latency 필수, 매 stateless transform.
|
||||
|
||||
## ❌ 안티패턴
|
||||
- **BPMN diagram = code 동기화 안 됨**: 매 visual model 만 update, 실제 code drift.
|
||||
- **Workflow engine 의 business logic 과다**: 매 service task 안에 매 거대 conditional → 매 BPM diagram 의 의미 상실.
|
||||
- **No timeout / no retry**: 매 stuck instance pile up.
|
||||
- **Saga 의 compensation 누락**: 매 partial state 영구 leak.
|
||||
- **매 모든 thing 을 workflow**: 매 simple op 도 workflow → 매 latency / debugging cost 폭증.
|
||||
|
||||
## 🧪 검증 / 중복
|
||||
- Verified (BPMN 2.0 OMG spec, Camunda 8 / Temporal 2026 docs, "Process Mining" by van der Aalst).
|
||||
- 신뢰도 A.
|
||||
|
||||
## 🕓 Changelog
|
||||
| 날짜 | 변경 |
|
||||
|---|---|
|
||||
| 2026-05-08 | Phase 1 |
|
||||
| 2026-05-10 | Manual cleanup — BPM (business process) full content with Camunda/Temporal patterns |
|
||||
Reference in New Issue
Block a user