Stackflows
HomePricingContactBPMN Academy
  • Introduction to StackFlows
  • Getting started
    • 🚀 How to start?
    • ❓FAQ
    • 🤗 Our community
    • 📖 Definitions
    • 📚 Knowledge base
  • Products
    • Studio
      • Collaboration with others
        • Comments
        • Model share
      • Model categories
      • Model design
        • Node types
          • Start node
          • Task
          • User task
            • User task forms (Custom fields)
          • Business rule (DMN) task
          • Service (external) task
          • Call another process
          • End node
          • Gateway
        • Start (Test) process
        • Data mapping
        • Data forms
        • Flow conditions
        • Time formats
        • Token simulation
        • Process real-time simulation
        • General model settings
        • Advanced model settings
      • Model deployment
        • Deployment errors
      • Process execution (Start)
        • Manual process start
        • Process start by email
        • Process start with webhook
        • Process start via API
      • Process execution errors
      • Insights and analytics
        • Model real-time activity
        • Heatmap insights
      • Embedded BPMN Studio
      • Basic features
        • Model versions
        • Version compare
        • Process tags
        • Model import/export
        • Model draft version
        • Model notes
    • App (User area)
      • Dashboard and metrics
      • User tasks
      • Workflows
      • User management
      • Organization structure (Tree)
      • Organization settings
    • Core features
      • Variables
      • Organization (Business) units
      • Tags
      • Profiles
      • Environments
    • Apps & Connectors
      • Make.com integration
      • Custom app integration
      • Camunda 7 connection
      • App & Integration profiles
  • BPMN & DMN modelling
    • Introduction of BPMN
  • API
    • API Introduction
    • API reference
  • Subscriptions & Billing
    • Introduction
  • Troubleshooting
    • How to report a problem?
  • Policies
    • Terms of services
    • Privacy
    • Data processing
Powered by GitBook
On this page
  • Making a request
  • Activity after the process started
  1. Products
  2. Studio
  3. Process execution (Start)

Process start via API

PreviousProcess start with webhookNextProcess execution errors

Last updated 1 year ago

This documentation serves as a comprehensive guide to initiating process execution programmatically using our robust API capabilities. By leveraging the API, users gain the flexibility to seamlessly trigger the start of a process and automate the workflow. In this documentation, we will explore the necessary steps, required parameters, and example code snippets to empower you to initiate the process start effortlessly and efficiently. Let's dive in and unlock the power of process automation through API integration.

API endpoint to starting business process via API:

Making a request

Here is a bash sample:

curl --request POST \
    "https://base.stackflows.com/api/v2/environment/business-process-models/0988b8a0-0514-11ee-90b9-0f5e36373b39/start" \
    --header "Authorization: Bearer {ENVIRONMENT_AUTH_TOKEN}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"external_execution_reference\": \"placeat\",
    \"submission\": [
        \"sint\"
    ]
}"

Things to know:

  • The authorisation token is an environment token which can be found in Organization Settings at

  • Body can be empty if the process doesn't contain any mandatory data to provide

  • External_execution_reference is an external reference (Optional)

  • Submission is optional and it's an array to provide mandatory

Activity after the process started

After successfully initiating the process execution via API, users can expect to see activity on user or service tasks within the process flow. These tasks represent the specific actions and operations that need to be performed to progress the process further. By monitoring the activity on these tasks, users can gain insights into the progress and status of the process execution.

https://base.stackflows.com/docs/environment#business-process-models-POSTapi-v2-environment-business-process-models--business_process_model--start
Stackflows User Area