The task allows to create tasks periodically.
Class path:
com.suncode.pwfl.workflow.process.CreateProcess
Called function:
createProcess
Parameters:
Name | Required | Description |
Package identifier | The package identifier in which the process is located. | |
Process identifier | Process definition identifier. | |
Process variables | Variables with which the process should be initiated. There are 2 ways to forward variables:
|
JSON representing variables:
The maximum length of the Process variables parameter is 255 characters. For longer JSONs, you should specify the path to the file with this JSON.
Example of variable representation
[{"name":"text", "value":"asfasdf", "type":"string"}, {"name":"whole", "value":"123", "type":"long"}]
Name | Description |
name | Variable name |
value | Variable value |
type | Variable type. Permitted types::
|
Date type takes the date in format yyyy-MM-dd HH:mm:ss eg. 2016-02-03 20:23:45
It should be remembered that in the system, the Date field (without time) is stored as a string pole type.
Zdanie dostępne od wersji systemu 3.1.33
Zadanie pozwala na okresowe tworzenie zadań.
Ścieżka do klasy:
com.suncode.pwfl.workflow.process.CreateProcess
Wywoływana funkcja:
createProcess
Parametry:
Nazwa | Wymagany | Opis |
---|---|---|
Identyfikator pakietu | ![]() | Identyfikator pakietu, w którym znajduje się proces |
Identyfikator procesu | ![]() | Identyfikator definicji procesu |
Zmienne procesu | ![]() | Zmienne z jakimi zainicjowany ma zostać proces. Istnieją 2 sposoby przekazania zmiennych:
|
JSON reprezentujący zmienne:
Maksymalna długość parametru Zmienne procesu wynosi 255 znaków. Dla dłuższych JSON-ów należy podać ścieżkę do pliku z tym JSON-em.
[{"name":"tekstowa", "value":"asfasdf", "type":"string"}, {"name":"calkowita", "value":"123", "type":"long"}]
Nazwa | Opis |
---|---|
name | Nazwa zmiennej |
value | Wartość zmiennej |
type | Typ zmiennej. Dopuszczalne typy:
|
Typ date przyjmuje datę w formacie yyyy-MM-dd HH:mm:ss np. 2016-02-03 20:23:45
Należy pamiętać, że w systemie Pole datowe (bez czasu) przechowywane jest jako pole typu string.