Categories
Bizagi Tips and Tricks

How to Use Postman to call Bizagi web services

Introduction

Postman is a powerful API testing tool that allows developers and testers to send requests, validate responses, and automate workflows. While Postman works seamlessly with JSON APIs, working with XML responses often requires additional processing.

In this article, we will:

  • Configure Postman to make web service calls.
  • Explain why XML transformation is necessary.
  • Use JavaScript in Postman’s “Tests” tab to modify XML responses dynamically.

By the end, you’ll be able to restructure API responses in real-time, making API testing more efficient.

Categories
Bizagi Tips and Tricks

Bizagi Development Handbook

As a Bizagi developer, I often find myself using the same code snippets, XML structures, and syntax repeatedly. Instead of memorizing everything, I’ve decided to create this Bizagi Development Handbook—a quick reference guide where I can store essential code, configurations, and best practices that I use regularly.

This article is a work in progress, and I’ll continue adding more content over time as I refine and expand my knowledge. Whether it’s scripting, XML structures, or integration techniques, this guide will evolve into a comprehensive resource for Bizagi development. Stay tuned for updates!

Categories
Bizagi

Bizagi: Fall 2024

Bizagi’s Fall 2024 release, launched on October 31, 2024, introduces a suite of advanced features designed to elevate automated processes through enhanced AI capabilities. Bizagi Documentation

AI Agents Enhancements

  • AI Agent Templates: Bizagi Studio now offers AI Agent Templates, organized into Solutions for streamlined browsing and filtering. These templates come with preset prompts and auto-filled details, simplifying customization.
  • File Input for AI Agents: Users can upload files to AI Agents, enabling Bizagi’s AI to analyze content swiftly, facilitating the processing of large volumes of information, including complex data like handwritten text.
  • Execution from Form Actions: AI Agents can now be executed directly from Form Actions within Bizagi Studio, integrating AI capabilities seamlessly into business processes for enhanced efficiency.
Categories
Bizagi Connector Tips and Tricks

Tips for Building a Connector

Available Data Types

Categories
API Bizagi

Working with Bizagi APIs

Authentication

Go to OAuth2 Applications option under the Admin>Security and register a new application:

Categories
Bizagi Tips and Tricks

How to update an entity not related to the data model

An easy way to update an entity which is not related to the data model is to use the CEntityManager method called GetEntity. This comes in handy when the SOA layer is not accessible as this is the only way you can perform this operation.

Categories
Best Practices Bizagi

How to Keep Track of Deployments (Bizagi)

Bizagi is a very peculiar tool when it comes to deployments and if you are not well organized, things can go south pretty quickly.

In my current project, the production environment is in use 24/7 and the opportunities for a new release window are slim to none. So, imagine having issues in production just because you forgot to import the values of a new parameter entity.

Categories
Bizagi Tips and Tricks

Date, DateTime data types

Convert Date or DateTime to String data type

var sDateTimeFormatted = dDateTime.ToString("MM/dd/yyyy hh:mm");
var sDateFormatted = dDate.ToString("MM/dd/yyyy");

Or you could use String.Format

var sDateFormatted = System.String.Format("{0:d}",DateTime.Now);

Use this to convert it for XML

var dTransactionDate = DateTime.Now;
var sTransactionDate = XmlConvert.ToString(dTransactionDate, XmlDateTimeSerializationMode.Unspecified);

Dates as filters for entities

[dDateDelivered != null AND dDateDelivered >= '08/22/2019 12:00:00 AM']

Bizagi’s way

<format-date(<XPath>,"format")>
Categories
Bizagi Tips and Tricks

Escape Character in Bizagi

Use backslash (\) for string escape. See the following examples:

var sAttribute = "test";
var xCollection= Me.getXPath("entity-list(\"mEntity\", \"sAttribute = '"+ sAttribute +"' AND bActive = 1\")");
var xCollection= Me.getXPath("entity-list('mEntity','sAttribute = \"test\" ')");
Categories
Bizagi Tips and Tricks

Error Could not generate assembly for

Web portal error in Bizagi

Error Type: BaseException

Error Message: Unable to process control: _. Control type: ContentPanel. Unable to process property: _. Error processing Rule = _; Error: Error Evaluating Rule _ -Error Could not generate assembly for [C:\home\site\wwwroot\App_Data\Temporary\ComponentLibrary\BizAgi.ComponentLibrary.CRuleContextJS.js]: Errors: Error Line,Column:596,26 Error Description: ‘get’ is a new reserved word and should not be used as an identifier