Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

English

The task allows to create tasks periodically.

 

Class path:

Code Block
com.suncode.pwfl.workflow.process.CreateProcessTask

 

Called function:

Code Block
execute

 

Parameters:

Name

Required

Description

Package identifier

The package identifier in which the process is located.

Process identifier

Process definition identifier.

Process variables as

Image Removed

Variables with which the process should be initiated.

There are 2 ways to forward variables:

  • as a manually entered JSON representing variables
  • as the path to the Image Added

    The way we pass variables to the process:

    • empty
    • as manually typed JSON representing the variables
    • as a JSON file representing the variables

    Process variables

    Image Added

    Variables with which the process is to be initialized.

    The input method depends on the selected value of the above parameter.

    JSON representing variables:

    Note

    The maximum length of the Process variables parameter is 4000 characters. For longer JSONs, you should specify the path to the file with this JSON.



    Code Block
    languagexml
    titleExample 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::

    • string
    • boolean
    • double
    • long
    • date
    Info

    Date type takes the date in format yyyy-MM-dd HH:mm:ss eg. 2016-02-03 20:23:45

    Note

    It should be remembered that in the system, the Date field (without time) is stored as a string pole type.

    Polish

    Zadanie pozwala na okresowe tworzenie zadań.

     

    Ścieżka do klasy:

    Code Block
    languagetext
    com.suncode.pwfl.workflow.process.CreateProcessTask


    Wywoływana funkcja:

    Code Block
    languagetext
    execute


    Parametry:

    (error)
    NazwaWymaganyOpis
    Identyfikator pakietu(tick)Identyfikator pakietu, w którym znajduje się proces
    Identyfikator procesu(tick)Identyfikator definicji procesu
    Zmienne procesu jakoImage Added

    Zmienne z jakimi zainicjowany ma zostać proces.

    Istnieją 2 sposoby przekazania zmiennych:

    Sposób z jakim przekazujemy zmienne do procesu:

    • brak
    • jako ręcznie wpisany JSON reprezentujący zmienne
    • jako ścieżka do pliku plik z JSON-em reprezentującym zmienne
    Zmienne procesuImage Added

    Zmienne z jakimi zainicjowany ma zostać proces.

    Sposób wprowadzania zależy od wybranej wartości powyższego parametru.

    JSON reprezentujący zmienne:

    Note

    Maksymalna długość parametru Zmienne procesu wynosi 4000 znaków. Dla dłuższych JSON-ów należy podać ścieżkę do pliku plik z tym JSON-em.

    Code Block
    languagexml
    titlePrzykład reprezentacji zmiennych
    [{"name":"tekstowa", "value":"asfasdf", "type":"string"}, {"name":"calkowita", "value":"123", "type":"long"}]
    NazwaOpis
    nameNazwa zmiennej
    valueWartość zmiennej
    type

    Typ zmiennej.

    Dopuszczalne typy:

    • string
    • boolean
    • double
    • long
    • date
    Info

    Typ date przyjmuje datę w formacie yyyy-MM-dd HH:mm:ss np. 2016-02-03 20:23:45

    Note

    Należy pamiętać, że w systemie Pole datowe (bez czasu) przechowywane jest jako pole typu string.