Skip to main content

Generation Examples

This section introduces examples of assets actually generated from prompts.

Opportunity Management Process​

Image of the Opportunity Management Process​

bpm_sample_opportunity_management

Prompt Example for Specification Generation​

Download the BPMN file above from the IM-BPM process designer, place it in the doc folder of the Accel CLI project, and make the following request from the prompt.

The generated results are only proposals. Examine the content of the artifacts and make corrections as appropriate.
In particular, be sure to review the content of to-be-discussed.md (items to be discussed).

Please create the specifications from doc/opportunity-management-process.bpmn.

Artifacts of Specification Generation​

  • opportunity-management-process-prompt: Directory
  • specification.md (specifications): Describes the outline of the BPM process and so on
  • business-data.md (business data definitions): Business data definitions
  • opportunity-management-process.bpmn: The duplicated bpmn file (used to write in the content of the specifications and the script paths)
  • to-be-discussed.md (items requiring further consideration): Describes items that need to be considered
  • supplement.md (specification adoption policy and supplementary notes): Describes the specification adoption policy and supplementary notes
  • interactive-log.md (dialogue history): Describes the dialogue history with the AI agent
  • lead-management: Directory for the lead management feature
    • lead-management-screen.md: Screen definition of the lead management feature
    • lead-management-logic.md: Logic definition of the lead management feature
  • negotiation-assignment: Directory for the negotiation assignment feature
    • negotiation-assignment-screen.md: Screen definition of the negotiation assignment feature
    • negotiation-assignment-logic.md: Logic definition of the negotiation assignment feature
  • negotiation-progress: Directory for the negotiation progress feature
    • negotiation-progress-screen.md: Screen definition of the negotiation progress feature
    • negotiation-progress-logic.md: Logic definition of the negotiation progress feature
  • result-analysis: Directory for the result analysis feature
    • result-analysis-screen.md: Screen definition of the result analysis feature
    • result-analysis-logic.md: Logic definition of the result analysis feature

Prompt Example for Code Generation​

After generating and correcting the specifications, request code generation with a prompt such as the following.

Please create the scripts based on doc/opportunity-management-process-prompt.

Artifacts of Code Generation​

src
└─main
├─conf
│ │
│ ├─products
│ │ └─import
│ │ └─basic
│ │ └─my-project10
│ │ import-my-project10-config-1.xml
│ │
│ └─routing-jssp-config
│ opportunity_mgmt.xml
│
├─jssp
│ │
│ └─src
│ └─opportunity_mgmt
│ ├─common
│ │ │ bpm_request_helper.js
│ │ │
│ │ └─sql
│ │ select_opportunity.sql
│ │ select_opportunity_by_process_instance.sql
│ │
│ ├─lead_management
│ │ ├─sql
│ │ │ insert_opportunity.sql
│ │ │ update_decision_date.sql
│ │ │ update_nurturing.sql
│ │ │ update_screening_result.sql
│ │ │
│ │ └─view
│ │ interest_screening.html
│ │ interest_screening.js
│ │ lead_nurturing.html
│ │ lead_nurturing.js
│ │ opportunity_decision.html
│ │ opportunity_decision.js
│ │ potential_customer_register.html
│ │ potential_customer_register.js
│ │
│ ├─negotiation_assignment
│ │ ├─sql
│ │ │ update_negotiator.sql
│ │ │
│ │ └─view
│ │ negotiator_assignment.html
│ │ negotiator_assignment.js
│ │
│ ├─negotiation_progress
│ │ ├─sql
│ │ │ update_contact_result.sql
│ │ │ update_contract.sql
│ │ │ update_needs_summary.sql
│ │ │ update_negotiation_result.sql
│ │ │ update_proposal_summary.sql
│ │ │
│ │ └─view
│ │ contract_conclusion.html
│ │ contract_conclusion.js
│ │ customer_contact.html
│ │ customer_contact.js
│ │ needs_analysis.html
│ │ needs_analysis.js
│ │ negotiation_execution.html
│ │ negotiation_execution.js
│ │ proposal_planning.html
│ │ proposal_planning.js
│ │
│ └─result_analysis
│ ├─sql
│ │ update_analysis.sql
│ │
│ └─view
│ result_analysis.html
│ result_analysis.js
│
└─storage
└─system
│
└─products
└─import
└─basic
└─opportunity_mgmt
└─0.1.0
opportunity_mgmt-authz-policy.xml
opportunity_mgmt-authz-resource-group.xml
opportunity_mgmt-authz-resource-group_en.xml
opportunity_mgmt-authz-resource-group_ja.xml
opportunity_mgmt-authz-resource-group_zh_CN.xml
opportunity_mgmt-authz-resource.xml
opportunity_mgmt-authz-resource_en.xml
opportunity_mgmt-authz-resource_ja.xml
opportunity_mgmt-authz-resource_zh_CN.xml
opportunity_mgmt-authz-subject-group.xml
opportunity_mgmt-authz-subject-group_en.xml
opportunity_mgmt-authz-subject-group_ja.xml
opportunity_mgmt-authz-subject-group_zh_CN.xml
opportunity_mgmt-ddl_oracle.sql
opportunity_mgmt-ddl_postgre.sql
opportunity_mgmt-ddl_sqlserver.sql
opportunity_mgmt-role.xml
opportunity_mgmt-role_en.xml
opportunity_mgmt-role_ja.xml
opportunity_mgmt-role_zh_CN.xml
opportunity_mgmt_sample-dml.sql

Prompt Example for BPMN Reflection​

After generating the specifications and the code, request reflection into the BPMN with a prompt such as the following.

Please reflect the content of the generated specifications and scripts into doc/opportunity-management-process-prompt/opportunity-management-process.bpmn.

Prompt Example for Creating Tenant Environment Setup Assets​

After reflecting into the BPMN, request incorporation into the tenant environment setup assets with a prompt such as the following.

Please create the IM-BPM tenant environment setup assets for doc/opportunity-management-process-prompt/opportunity-management-process.bpmn.

Artifacts of Creating Tenant Environment Setup Assets​

In addition to the roles, authorization assets, and DDL already generated under storage/system/products/import/basic/opportunity_mgmt/0.1.0/ at the time of code generation, the following are added.

  • opportunity-management-process.bpmn: The BPMN for import, copied to storage/system/products/import/basic/opportunity_mgmt/0.1.0/ (added to the same version folder as the existing role, authorization, and DDL assets)
  • opportunity_mgmt_bpm_import.js: The BPMN import script generated in jssp/src/opportunity_mgmt/initialize/0.1.0/. It creates the process designer project if none exists and registers the BPMN file
  • import-my-project10-config-1.xml: An <extends-import-class> line that runs opportunity_mgmt_bpm_import.js is appended to the existing <extends-import> section (the config number is not incremented; the existing config-1 is used as is)

Points to note

  • If the role and authorization assets or the DDL have not been generated yet, this skill generates them as a recovery step.
  • <version> (0.1.0 in the example above) uses the version folder that already contains the role, authorization, and DDL assets as is.