Designer Examples Overview
Find below an overview on all Designer examples, ordered by topic. The examples are available via the PAS Examples namespace in your Designer installation, or you can download here and import.
Action Script
Refer to Action Script Language for more information on the Action Script language in general.
Example Download | Description |
---|---|
This example shows some basic Action Script operations for array handling. Refer to Array Operations pp. for more information on array handling in general. | |
This example shows some basic arithmetics that can be performed in Action Script with Integer, Float and and DateTime operands. Refer to Arithmetic Operations for more information on Action Script arithmetics. | |
This example shows some basic Action Script operations for DateTime handling. Refer to DateTime Operations or DateTime Functions in the Designer Guide for more information. | |
This example shows some Action Script operations for converting types. The following types are covered: Click the links in the above list to read more about the conversion operations. |
Activity Diagram
Example Download | Description |
---|---|
This example shows how to use decisions in activity diagrams. Refer to Adding a Decision in the Designer Guide for more information on the topic. | |
This example shows how to use loops in activity diagrams. The user can enter a number of iterations. The service will then run a loop the specified number of times and display the result. Refer to Implementing a Loop for more information on the topic. |
Adapters
Refer to Adapters for an overview on all available adapters in the Designer.
Example Download | Description |
---|---|
This example shows how to use the Filesystem adapter to write and read files to and from the filesystem in service context. The service implements a simple product list where products to be exported can be selected. The selected data is written to a file in the filesystem (tmp/Export) in the service folder. The Export directory is created on start event. The example service shows the following actions of the Filesystem adapter:
Chapter Filesystem Adapter explains in detail all options of the Filesystem adapter. | |
This example shows how to handle JSON documents. Refer to classToJSON() Operation in the Designer Guide for details. | |
This example shows how to use the s3 adapter to write and read files to and from an S3 bucket. The service implements a simple product list where products to be exported can be selected. The selected data is converted to JSON and saved to an S3 bucket. The example service shows the following actions of the S3 adapter:
Chapter S3 Adapter explains in detail all options of the Filesystem adapter. |
DB
Example Download | Description |
---|---|
This example implements a simple customer data management. It shows how to use the MongoDB adapter to access data from a MongoDB:
Refer to MongoDB Adapter for more information. | |
This example implements a simple customer data management. It shows how to use the SQL adapter to access data from a SQL database, in particular:
Refer to SQL Adapter for more information. |
Flat File
Example Download | Description |
---|---|
This example shows how to use the Flat File adapter to compose data to a hierarchic flat file structure. The service initializes a list of orders which is composed to a flat file and displayed to the user. Chapter Flat File Adapter explains in detail all options of the Flat File adapter. | |
This example shows how to use the Flat File adapter to parse or compose data from or to a flat file structure. The service implements a simple product list where products to be exported can be selected. The selected data is composed to a flat file. In the next process step, the exported data is parsed back to a data structure and displayed to the user. The example service shows the following actions of the Flat File adapter:
Chapter Flat File Adapter explains in detail all options of the Flat File adapter. | |
This example shows how to use the Flat File adapter to compose data to a flat file structure showing strings in quotes. The service initializes a list of customer data which is composed to a flat file and displayed to the user. The flat file includes a header and has the layout of a CSV file with records being separated by commas. Chapter Flat File Adapter explains in detail all options of the Flat File Adapter. |
Memory
Refer to Memory Adapter for more information on what you can do with maps.
Example Download | Description |
---|---|
This example implements a guessing game. It shows
Chapter Memory Adapter explains in detail all options of the Memory adapter. | |
This example shows how to handle hash maps with the Memory adapter. It implements a small product management, where products are stored in a hash map in memory. The example shows how you can
For more information on this topic refer to Using the Memory Adapter with Maps in the Designer Guide. Chapter Memory Adapter in the explains in detail all options of the Memory adapter. |
REST
Example Download | Description |
---|---|
The RESTAdapter_BlobContent_Example shows how to access an API with blob content. Important Note The RESTAPI_BlobContent_Example needs to be deployed and running to make test calls. The RESTAPI_BlobContent_Example implements an API that
Together, these examples show how to handle blob content for POST and GET requests. You can
Chapter REST API explains how REST concepts are implemented to Designer services. | |
This example shows how to use the REST adapter to trigger a subprocess from a parent process with special consideration of authorization if the subprocess has lanes. Refer to REST Adapter for more information about the different options of the REST adapter. | |
RESTAdapter_SupportManager_Example | The RESTAdapter_SupportManager_Example implements a simple support manager. It shows
Important Note The RESTAPI_SupportManager_Example needs to be deployed and running to make test calls. The RESTAPI_SupportManager_Example implements a REST service to handle support cases that are stored to a MongoDB. It contains neither forms nor a process. It shows how to
For easy try-out: Either use it with the RESTAdapter_SupportManager_Example or deploy it to an API Management organization, and use the test UI to make calls to the API. Refer to REST Adapter for more information about the different options of the REST adapter. |
SAP
Example Download | Description |
---|---|
This example connects to the SAP system that has been configured in the SAP alias, and reads the system information via an RFC call to an SAP ABAP function (RFC_SYSTEM_INFO). Refer to SAP Adapter in the Designer Guide for more details. | |
This example shows how to process an IDOC from an IDoc string to an IDoc structure. Refer to SAP Adapter in the Designer Guide for more details. |
URL
Refer to URL Adapter for more information on what you can do with the URL Adapter.
Example Download | Description |
---|---|
This example shows how you can access resources with the URL adapter. It uses a GET request to access a JSON address file stored in the Scheer PAS Documentation. The contents of the file are then displayed in a form. Refer to URL Adapter for more information on what you can do with the URL adapter. | |
This example shows how to use the URL adapter with the HTTP protocol to make requests to web resources. It contains two processes which show
Refer to URL Adapter for more information on what you can do with the URL adapter. |
AI
Example Download | Description |
---|---|
This example shows how to use an AI agent to process unstructured data. Important Note
Refer to the Designer Guide for more details about AI agents and what you can do with them. | |
The example shows how to use the OpenAI Library and the OpenAI endpoints: Audio transcription, chat completion and image generation. |
BPMN Elements
For more information about BPMN models in general, refer to Modeling BPMN.
Example Download | Description |
---|---|
This example shows the usage of End Events. Look at the xUML service logs to follow the process flow. Refer to End Event in the Designer Guide for details about the configuration options of this BPMN element. | |
This examples shows the usage of Events. Start a process instance - you will be guided through the process execution. Refer to Plain Event and Message Event for more information on this topic. | |
This example shows the usage of Gateways. The forms guide you through the process flow of the exclusive gateway. To see the process flow of the parallel gateway, look at the xUML service logs. Refer to Exclusive Gateway and Parallel Gateway for details about the configuration options of these BPMN elements. | |
This example shows the usage of a Receive Task. Start a process instance - you will be guided through the process execution. Refer to Receive Task for details about the configuration options of this BPMN element. | |
This example shows the usage of a Service Task element. Refer to Service Task for an overview on all configuration options of the Service Task element. | |
This example shows the usage of the different Start Events. Look at the xUML service logs to see the process flow. Refer to Start Event, Message Start Event and Timer Start Event for details about the configuration options of these BPMN elements. | |
This example shows the usage of Boundary and Intermediate Timer Events. The forms guide you through the process flows of the two different timer events. Alternatively, you can also look at the xUML service to see the process flows. Refer to Timer Event for details about the configuration options of this BPMN element. | |
This example shows the usage of User Tasks. The service implements the transmission of a short message the user can enter, which is then shown in the service logs. Refer to User Task for details about the configuration options of this BPMN element. |
Data Modeling
For more information on data mapping in general, refer to Modeling Data Mapping.
For more details on using the mapping editor, see Working with the Mapping Editor.
Example Download | Description |
---|---|
This example shows how polymorphism can be implemented in the Designer. The PAS documentation explains the example in detail. Refer to Custom Complex Types pp., Polymorphism in particular, for more information. | |
This example shows how to transform data on an object flow via the Get attribute. The service implements a simple customer address verification. The user can enter a customer ID and an address and the service then checks if the entered address matches the address that is saved for that customer. | |
This example shows how you can control the serialization of data structures to XML with a set of dedicated stereotypes, e.g.
Chapter XML Serialization explains in detail how you can control the serialization process, and provides a comprehensive list of available stereotypes and their related attributes. |
Data Mapping
Example Download | Description |
---|---|
This mapping example shows how you can extract data out of an input array using a condition as an index to access a dedicated array element. The process shows employee data entered into a form and then extracts the employee addresses as an array. From this array of addresses, only the private address is selected via a conditional mapping and then shown to the user. Refer to Supported Mapping Functions for more information on this topic. | |
This mapping example shows how to map array content for each array element to a target array. Refer to Array Mapping for more information on this topic. | |
This example shows a simple array mapping with the Designer. Refer to Supported Mapping Functions for more information on this topic. | |
This example shows two different implementations of the same mapping:
Refer to Supported Mapping Functions for more information on this topic. |
Form Handling
Example Download | Description |
---|---|
This example shows how to apply custom CSS to forms and form elements in the Designer. Important Note To be able to execute this example, you need to upload the sample CSS file example-ccs-acme.css as a resource to the File Manager. You can download the CSS file here. Refer to Managing File Resources for more information on how to upload the file. Refer to Styling Form Elements for more information on the topic of how to apply custom CSS to forms. | |
This example shows how to add Angular directives to a form element. It uses the custom directive "textareaAdjust" to resize a text area in a form in relation to its content. Refer to Developing Custom Directives for more information about custom directives. | |
This example shows how to transfer form data from one form to another. For more information on this topic refer to Using Forms. | |
This example shows how default values on form elements can be set dynamically. For more information on this topic refer to Using Forms. | |
This example shows how to dynamically load data into the checkbox form element during initialization. Refer to Setting Form Elements Dynamically for more information on initial data loading and a list of form elements and attributes for which initial data loading is available in the Designer. | |
This example is a simple form example that shows all kinds of elements and how they can be configured.
For more information on this topic refer to Supported Form Elements. | |
This example shows how to use subforms to add the same content to multiple forms. Refer to Subform for details about the configuration options of this form element. |
Data Table
Example Download | Description |
---|---|
This example shows the click action on data table rows. Refer to Data Table for details about the configuration options of this form element. | |
This example shows a simple data table with initialization of a table row. Refer to Data Table for details about the form element and its configuration options. |
JavaScript
Refer to Using JavaScript for more information on JavaScript in the Designer.
Example Download | Description |
---|---|
This example shows how to use JavaScript operations in the Designer. It implements a password generator that will return a password to the user's specifications. | |
This example shows how to use the
Refer to Data Exchange Between JavaScript Calls for a more detailed explanation. |
Libraries
Refer to Working with Libraries for more information about library usage in a Designer service.
Refer to Developing and Using Libraries for details about library development in the Designer.
Example Download | Description |
---|---|
This library is part of the Scheer PAS Designer example series, and provides types and operations for a simple customer address handling. The functionality of the library can be tested with a simple test process, e.g. the UseLib_CustomerData_Example: This example shows how to use a Designer library (CustomerAddress_Lib) in a service. | |
This example shows the usage of a Java library that has been compiled into an xUML library (xlib). Spoiler There is no difference to using an xUML library that has been created with the Designer. Refer to Developing Designer Libraries Using Java for more information. | |
This example implements a simple HTTP server. It shows how to implement Java callbacks from a Java library that has been compiled into an xUML library (xlib). The HTTP server replies to
To be able to access the HTTP server, you need to setup a route in API Management after service deployment. The route must point to Refer to Developing Designer Libraries Using Java pp. for more information on Java libraries and Java callbacks. |
Miscellaneous
Example Download | Description |
---|---|
This example implements a simple idea management process. It shows how to manage different employee roles using lanes, and how to propagate data between forms and the process. Refer to the Scheer PAS documentation for more information:
| |
This example shows how you can add custom values to the instance list. The process shows a simple complaint management process, where a user can enter a complaint as well as the customer name, the concerned product and the complaint status into a form. The process will then transfer these values to the instance list and a second form will be shown for the user to check the entered complaint. Take a look at the instance table to see the custom values displayed. On Configuring the Instance List you can find more information on this topic. | |
This example implements a simple onboarding process with parallel tasks. Refer to the Scheer PAS documentation for more information:
| |
The PersistentState_Query_Example shows how to access data from BPMN process instances from another service. You can access another service in two ways:
Important Note This example accesses instances of the Simple_Order_Service, filters them by their attribute values and displays the instances in a table. To run this example, you first have to deploy the Simple_Order_Service, start some instances and proceed them until the second form appears. This is to have data to query from this service. Refer to xUML Runtime API and xUML Runtime API Reference in the Administration Guide for more information on the xUML runtime API. | |
This example shows how you can access the user details from the logged-in user from a Designer service. The process reads the user data and displays the user's name, id, company and email in a form. | |
This example shows how to implement custom service settings.
Refer to Class Properties > Using Properties to Configure a Service in the Designer Guide for more information on settings. The best practice page How to Define Custom Service Settings in a Designer Service explains the necessary steps to define your own custom service settings. Depending on your setup, refer to Adapting the Configuration of Containerized xUML Services for Docker or Kubernetes in the Administration Guide for more information on how to change the configuration of an xUML service. |