{
  "id": "flapbase:organization-training",
  "source": "flapbase",
  "readOnly": true,
  "name": "法人向け研修ポータルを運営する",
  "purpose": "法人単位の招待・受講割当・進捗確認",
  "shape": "operation",
  "version": 1,
  "steps": [
    {
      "key": "prepare",
      "title": "講座と教材を準備する",
      "phase": "create",
      "kind": "task",
      "stepRef": null,
      "acceptance": "human_acceptance",
      "deliverableKinds": [],
      "performer": "agent",
      "agentPermission": "draft",
      "automation": {
        "executor": "agent",
        "approval": "each_time",
        "trigger": "proposal_approval"
      },
      "procedure": {
        "what": "講座と教材を準備する",
        "how": "指定の操作で候補版を作り、確認に出す。",
        "verify": "講座の成果物IDと固定版を記録する。",
        "tools": [
          "course_draft_get",
          "course_draft_save"
        ]
      },
      "startOffsetDays": null,
      "dueOffsetDays": null
    },
    {
      "key": "training-release",
      "title": "教材を確認して公開版を保存する",
      "phase": "publish",
      "kind": "task",
      "stepRef": null,
      "acceptance": "human_acceptance",
      "deliverableKinds": [],
      "performer": "human",
      "agentPermission": "propose",
      "automation": {
        "executor": "human",
        "approval": "each_time",
        "trigger": "manual"
      },
      "procedure": {
        "what": "教材を確認して公開版を保存する",
        "how": "以下の操作と記録を確認し、担当者が工程を完了する。",
        "verify": "内容を確認した担当者が公開状態の教材版を保存し、返された教材版IDを割当に使う。改訂済みの教材を公開しても既存の割当は元の版を参照する。",
        "tools": []
      },
      "startOffsetDays": null,
      "dueOffsetDays": null
    },
    {
      "key": "training-invite",
      "title": "法人の担当者と受講者を招待する",
      "phase": "publish",
      "kind": "task",
      "stepRef": null,
      "acceptance": "human_acceptance",
      "deliverableKinds": [],
      "performer": "human",
      "agentPermission": "propose",
      "automation": {
        "executor": "human",
        "approval": "each_time",
        "trigger": "manual"
      },
      "procedure": {
        "what": "法人の担当者と受講者を招待する",
        "how": "以下の操作と記録を確認し、担当者が工程を完了する。",
        "verify": "Workspace管理者が非公開Projectに法人担当者を招く。担当者はコース教材から受講者を同じProjectに招く。受講者はメールアドレスを本人確認して、閲覧者として参加する。",
        "tools": []
      },
      "startOffsetDays": null,
      "dueOffsetDays": null
    },
    {
      "key": "training-assign",
      "title": "受講者に公開済みの教材を割り当てる",
      "phase": "publish",
      "kind": "task",
      "stepRef": null,
      "acceptance": "human_acceptance",
      "deliverableKinds": [],
      "performer": "human",
      "agentPermission": "propose",
      "automation": {
        "executor": "human",
        "approval": "each_time",
        "trigger": "manual"
      },
      "procedure": {
        "what": "受講者に公開済みの教材を割り当てる",
        "how": "以下の操作と記録を確認し、担当者が工程を完了する。",
        "verify": "コース教材の「研修の割当と進捗」で、同じProjectに所属する人から受講者を選ぶ。担当者が同じProjectの公開済み教材の版と所属済みの受講者を選び、受講リンク（/learn/assignments/{assignmentId}）を本人に伝える。同じ依頼を再送する場合は同じ割当IDを使う。",
        "tools": []
      },
      "startOffsetDays": null,
      "dueOffsetDays": null
    },
    {
      "key": "training-attend",
      "title": "本人が教材を開いて受講する",
      "phase": "analyze",
      "kind": "task",
      "stepRef": null,
      "acceptance": "human_acceptance",
      "deliverableKinds": [],
      "performer": "human",
      "agentPermission": "propose",
      "automation": {
        "executor": "human",
        "approval": "each_time",
        "trigger": "manual"
      },
      "procedure": {
        "what": "本人が教材を開いて受講する",
        "how": "以下の操作と記録を確認し、担当者が工程を完了する。",
        "verify": "招待を受けた本人が割り当てられた版の教材を開き、受講の完了を記録する。",
        "tools": []
      },
      "startOffsetDays": null,
      "dueOffsetDays": null
    },
    {
      "key": "progress",
      "title": "受講進捗と完了を確認する",
      "phase": "analyze",
      "kind": "task",
      "stepRef": null,
      "acceptance": "human_acceptance",
      "deliverableKinds": [],
      "performer": "human",
      "agentPermission": "propose",
      "automation": {
        "executor": "human",
        "approval": "each_time",
        "trigger": "manual"
      },
      "procedure": {
        "what": "受講進捗と完了を確認する",
        "how": "以下の操作と記録を確認し、担当者が工程を完了する。",
        "verify": "コース教材の「研修の割当と進捗」で、受講者ごとに割当時の版と完了数を確認する。",
        "tools": []
      },
      "startOffsetDays": null,
      "dueOffsetDays": null
    }
  ],
  "transitions": [
    {
      "source": "prepare",
      "target": "training-release",
      "kind": "next"
    },
    {
      "source": "training-release",
      "target": "training-invite",
      "kind": "next"
    },
    {
      "source": "training-invite",
      "target": "training-assign",
      "kind": "next"
    },
    {
      "source": "training-assign",
      "target": "training-attend",
      "kind": "next"
    },
    {
      "source": "training-attend",
      "target": "progress",
      "kind": "next"
    }
  ],
  "origin": {
    "kind": "flapbase",
    "patternId": "organization-training"
  },
  "createdAt": null,
  "archivedAt": null
}
