Spydra Docs
For Developers
Spydra Platform
Spydra Platform
  • GETTING STARTED
    • Introduction
    • Why Spydra?
    • Blockchain fundamentals
      • Why Blockchain?
      • Private Blockchain
      • Public Chain
    • 🎧Getting started with a Private Network
      • Creating an account
      • Creating an organization
      • Creating a Network
      • Apps
    • 🔊Getting started with a Token Store on Public Chain
      • Token store
      • Customise token store front
      • List a real world asset and issue tokens
      • Manage token lifecycle
    • Intro to Hyperledger Fabric
  • Products Overview
    • 🎧Private Network
      • Organizations
        • Users and Organizations
        • Organisation Hosting - Spydra Hosted and BYOC
        • Organization Statuses
        • Organization Roles & Permissions
        • Organization Dashboard
        • Organization Entities
      • Networks
        • Network Statuses
        • Network Roles & Permissions
        • Network Configurations
        • Mandatory Card Addition
        • Nodes: Peer, Orderer & CA
        • Network Hosting Type
        • Network Dashboard
        • Network Operations
        • Nodes
      • Channels
      • Apps
        • Pre-Configured Apps
        • Custom Apps
      • Asset Tokenization
        • Use cases
        • Asset types
        • References
        • Asset Owners
        • Permissions
      • Tokens & Vault
      • Listeners
        • Network Listeners
        • App Listeners
        • Token Listeners
      • Workflow Builder
      • Oracles
      • GraphQL
      • Block Explorer
      • IPFS
      • Fabric Debug Plugin
    • 🔊Public Chain
      • Token Store
      • Tokenize Real World Assets
      • Tokenomics: Token & Token Sale
      • Trade & Payout
  • How to
    • 🎧Private Network
      • Account
        • Create an Account
        • Edit Profile details
        • Update email & Password
        • Forgot password
        • Google OAuth Signup - Update Email & Password
        • Deactivating or deleting your account?
      • Organizations
        • Create an Organization
        • Create & Manage BYOC Hosting
        • Invite members to an organisation
        • Edit Organization details
        • Manage Org members
        • Leave an Organization
        • Update Organization member roles
        • Pay Organisation Invoice
        • Update Billing Address
        • View Invoices
        • Organization Dashboard
        • Delete an Organisation
      • Networks
        • Create a Network
        • Advance Settings: Key Vault Store
        • View and edit Network details
          • Update Permissions for Network Members
          • Update Network Configuration
          • Update Key Vault
          • Manage API Keys
          • Delete a network
        • Inviting an organisation to a Network
        • Network Roles & Permissions
        • Joining a Network
        • Network Dashboard
      • Apps
        • Explore Apps
        • Deploy App
          • Deploying Asset Tokenization App
        • Manage Apps
        • Application Dashboard
      • Channels
        • Creating a Channel
        • Create a Consensus Policy
        • Update Channel
        • Channel Members
        • Delete channel
      • Nodes
        • Create Node
        • Node Dashboard
        • Delete Node
      • Pre-configured Apps
        • Deploy Asset Tokenization App
        • Asset Data
      • Custom Apps
        • Deploy Custom Chaincode
        • Chaincode as external service
        • Supported File Formats - ZIP format
        • Building in Binary format
          • Golang - Binary Format
          • Java Jar files
        • Chaincode Logs
      • Workflow
        • Triggers
        • Condition
        • Read
        • Actions
        • End
        • Variables & Identifiers
        • Calculations & Formulas
      • Oracles
        • Create an Oracle
        • Oracle with Asset tokenisation
        • Oracle with Custom Chaincode
      • Listeners
        • Create a Listener
        • Manage Listeners
    • 🔊Public Chain
      • Account
        • Create an Account
        • Edit Profile details
        • Update email & Password
        • Forgot password
        • Google OAuth Signup - Update Email & Password
        • Deactivating or deleting your account?
      • Token Store
        • Create a Token Store
        • Design Store Front
        • Custom Domain Hosting
        • Google Analytics Integration
        • Create & Manage Store Users
          • Store User KYC
        • Accreditation Management
        • Store Payments
        • Token Store Customers
      • Tokenise a Real World Asset
        • Real Estate
        • Other Asset Categories
      • Create a token
        • Define your token
        • Investor & Buyback Settings
        • Configure token returns & payouts
        • Create token sale
      • Additional Configurations
        • Create a Document Workflow
      • Publish Asset
      • Tokenise on TestNet
        • Polygon Amoy
      • Manage Token lifecycle
        • Returns & Payouts
          • Initiate an equity payout
          • Authorise Debt Payouts
          • View all payouts
        • View token investors
        • View token transactions
        • View signed documents
        • View/ Create a token sale
        • Post Token Updates
        • Update Price
        • Buyback Requests
  • Billing & Pricing
    • Pricing
    • Billing
      • Opt-in Billing
      • Opt-out Billing
    • Adding a Card & Autopay
    • Invoice Payments
    • Billing forecast
    • Unpaid Invoices
    • Credits
  • Developers
    • API Reference
      • Asset Tokenization
        • REST API
        • Testing REST API
        • GraphQL
          • Quickstart
          • Simple queries
          • Nested object queries
          • Complex queries
          • Aggregate queries
          • Operators
          • Built-in attributes
          • Pagination
      • Custom Chaincode
        • REST API
        • Testing REST API
        • GraphQL
          • Quickstart
          • Simple queries
          • Complex queries
          • Operators
          • Pagination
      • Token Store (Public Chain)
        • Token Issuer
        • Investor
      • IPFS
    • Developer Tools
      • Monitoring [Coming Soon]
    • API Key
  • Support
    • FAQs
    • My account is banned [D]
    • Why is it recommended to have an Odd number of Orderer nodes on a Network?
    • Support
  • Others
    • Glossary
  • Policies
    • Terms & Conditions
    • Privacy Policies
    • Open Spydra
Powered by GitBook
On this page
  • Asset Triggers
  • Scheduled Triggers
  • Token Triggers

Was this helpful?

  1. How to
  2. Private Network
  3. Workflow

Triggers

PreviousWorkflowNextCondition

Last updated 1 year ago

Was this helpful?

Triggers are events or conditions that initiate execution of a workflow. A combination of below events can initiate a workflow using an OR condition.

Asset Triggers

Workflows can be triggered when the specified asset events below are used as triggers for a workflow.

1. Create Asset

When a new asset is created, the workflow is triggered. To define the trigger, select the 'create asset' trigger and then choose the asset(s) from the dropdown list.

2. Update Asset

When an existing asset property is updated, the workflow is triggered. To define the trigger, select the 'update asset' trigger and then choose the asset(s) from the dropdown list.

3. Delete Asset

The workflow is triggered when an existing asset gets deleted. To define the trigger, select the 'delete asset' trigger and then choose the asset(s) from the dropdown list.

4. Update Owner

The workflow is triggered when the owner of an asset is updated. To define the trigger, select the 'update owner' trigger and then choose the asset(s) from the dropdown list.

5. Approval Action

The workflow is triggered when an approval action is initiated. To define the trigger, select from the list of previously created approval actions in other workflows. The list will be empty if no approval actions have been created yet.

See how to create an approval action in the workflow


Scheduled Triggers

1. Oracle Scheduler

The workflow is triggered when an oracle is initiated and fetched external data. To define the trigger, select from the list of available schedulers configured in the channel.

2. Scheduled Time

The workflow is triggered at a defined time based on the configured cron expression. To define the trigger, select the trigger 'At Scheduled Time'

  • Enter the cron expression

    1. minutes- Allowed value: 0-59 Allowed special characters: , - * / Example: 10 for 10th minute of an hour, Ranges: 1-10 for first 10 minutes of an hour, List: 1-10, 30 for first 10 minutes and 30th minute of an hour, Steps values: 0-59/2 for every 30 minutes Unrestricted: * for all possible values

    2. hours- Allowed value: 0-23 Allowed special characters: , - / *

    3. days (month)- Allowed value: 0-31 Allowed special characters: , - / *

    4. months- Allowed value: 0-11 Allowed special characters: , - / *

    5. day(week)- Allowed value: 0-7 Allowed special characters: , - / *


Token Triggers

Workflows can be triggered when the specified token events below are used as triggers for a workflow.

1. Mint Token

When a token is minted, the workflow is triggered. To define the trigger, select the 'mint token' trigger and then choose the token(s) from the dropdown list.

2. Burn Token

When a token is burnt, the workflow is triggered. To define the trigger, select the 'burn token' trigger and then choose the token(s) from the dropdown list.

3. Transfer Token

When a token is transferred, the workflow is triggered. To define the trigger, select the 'transfer token' trigger and then choose the token(s) from the dropdown list.

See how to create an oracle scheduler

🎧
#create-approval
Step 3: Oracle Scheduler