Commit 7f0a79bd authored by Francois Dziedzinl's avatar Francois Dziedzinl
Browse files

Merge branch 'feature/5.0-upgrade' into 'develop'

Feature/5.0 upgrade

See merge request !20
parents bde8dc93 dd2ecca8
from job import QorusJob
class BasicsLoggingJobPython(QorusJob):
def run(self):
UserApi.logInfo("job info: %y", self.getInfo())
# This is a generated file, don't edit!
type: job
name: basics-logging-job-python
desc: Job implementation example. The job simply logs every hour.
lang: python
base-class-name: QorusJob
class-name: BasicsLoggingJobPython
schedule:
minutes: "0"
hours: "*"
days: "*"
months: "*"
dow: "*"
version: "1.0"
author:
- Qore Technologies, s.r.o.
groups:
- BASIC-TRAINING-EXCHANGE-APP
code: basics-logging-job-python-1.0.qjob.py
# This is a generated file, don't edit!
type: job
name: basics-logging-job
desc: "Job implementation example. The job simply logs every hour."
desc: Job implementation example. The job simply logs every hour.
lang: qore
author:
- Qore Technologies, s.r.o.
base-class-name: QorusJob
class-name: BasicsLoggingJob
groups:
- BASIC-TRAINING-EXCHANGE-APP
lang: qore
schedule:
minutes: "0"
hours: "*"
......
from svc import QorusService
class BasicsSimpleServicePython(QorusService):
def init(self):
UserApi.logInfo("service is initialized")
# This is a generated file, don't edit!
type: service
name: basics-simple-service-python
desc: Service simple example
lang: python
author:
- Qore Technologies, s.r.o.
base-class-name: QorusService
class-name: BasicsSimpleServicePython
groups:
- BASIC-TRAINING-EXCHANGE-APP
version: "1.0"
autostart: true
servicetype: USER
code: basics-simple-service-python-1.0.qsd.py
methods:
- name: init
desc: initialization of the service
# This is a generated file, don't edit!
type: service
name: basics-simple-service
desc: "Service simple example"
desc: Service simple example
lang: qore
author:
- Qore Technologies, s.r.o.
autostart: true
base-class-name: QorusService
class-name: BasicsSimpleService
groups:
- BASIC-TRAINING-EXCHANGE-APP
lang: qore
autostart: true
version: "1.0"
servicetype: USER
code: basics-simple-service-1.0.qsd
......
# This is a generated file, don't edit!
type: workflow
name: BASICS-SIMPLE-WORKFLOW-JAVA
desc: "Simple workflow example for java"
desc: Simple workflow example for java
author:
- Qore Technologies, s.r.o.
autostart: 1
groups:
- BASIC-TRAINING-EXCHANGE-APP
version: "1.0"
steps:
[
"BasicsSimpleWorkflowStepJava:1.0"
]
version: "1.0"
autostart: 1
# This is a generated file, don't edit!
type: workflow
name: BASICS-SIMPLE-WORKFLOW-PYTHON
desc: Simple workflow example in python
author:
- Qore Technologies, s.r.o.
autostart: 1
groups:
- BASIC-TRAINING-EXCHANGE-APP
version: "1.0"
steps:
[
"BasicsSimpleWorkflowStepPython:1.0"
]
from wf import QorusNormalStep
class BasicsSimpleWorkflowStepPython(QorusNormalStep):
def primary(self):
UserApi.logInfo("BasicsSimpleWorkflowStep was called")
# This is a generated file, don't edit!
type: step
name: BasicsSimpleWorkflowStepPython
desc: Simple workflow step example in python
lang: python
base-class-name: QorusNormalStep
class-name: BasicsSimpleWorkflowStepPython
version: "1.0"
author:
- Qore Technologies, s.r.o.
steptype: NORMAL
code: BasicsSimpleWorkflowStepPython-1.0.qstep.py
#!/usr/bin/env qore
%new-style
%strict-args
%require-types
%enable-all-warnings
%requires QorusClientCore
const WORKFLOW_NAME = "BASICS-SIMPLE-WORKFLOW-PYTHON";
const ORDER_DATA = {
"staticdata": {
"test": "data"
}
};
hash<auto> response = qrest.post("workflows/" + WORKFLOW_NAME + "?action=createOrder", ORDER_DATA);
printf("Response: %N", response);
\ No newline at end of file
# This is a generated file, don't edit!
type: workflow
name: BASICS-WORKFLOW-SERIAL-STEPS-JAVA
desc: "Workflow serial steps example"
desc: Workflow serial steps example
author:
- Qore Technologies, s.r.o.
autostart: 1
version: "1.0"
steps:
[
"BasicsWorkflowSerialStep1Java:1.0",
"BasicsWorkflowSerialStep2Java:1.0"
]
version: "1.0"
autostart: 1
# This is a generated file, don't edit!
type: step
name: BasicsWorkflowSerialStep1Java
desc: "## Simple worklfow step example\nIt logs static data of the order and updates dynamic data"
desc: |-
## Simple worklfow step example
It logs static data of the order and updates dynamic data
lang: java
author:
- Qore Technologies, s.r.o.
base-class-name: QorusNormalStep
class-name: BasicsWorkflowSerialStep1Java
lang: java
version: "1.0"
steptype: NORMAL
code: BasicsWorkflowSerialStep1Java.java
# This is a generated file, don't edit!
type: workflow
name: BASICS-WORKFLOW-SERIAL-STEPS-PYTHON
desc: Workflow serial steps example
author:
- Qore Technologies, s.r.o.
autostart: 1
version: "1.0"
steps:
[
"BasicsWorkflowSerialStep1Python:1.0",
"BasicsWorkflowSerialStep2Python:1.0"
]
from wf import QorusNormalStep
class BasicsWorkflowSerialStep1Python(QorusNormalStep):
def primary(self):
UserApi.logInfo("BasicsWorkflowSerialStep1Python was called, static data: %N", self.getStaticData())
dynamic_data = self.getDynamicData()
if not dynamic_data:
dynamic_data = {"some_key" : "data"}
else:
dynamic_data["some_key"] = "data"
self.updateDynamicData(dynamic_data)
# This is a generated file, don't edit!
type: step
name: BasicsWorkflowSerialStep1Python
desc: "## Simple worklfow step example \nIt logs static data of the order and updates dynamic data"
lang: python
author:
- Qore Technologies, s.r.o.
base-class-name: QorusNormalStep
class-name: BasicsWorkflowSerialStep1Python
version: "1.0"
steptype: NORMAL
code: BasicsWorkflowSerialStep1Python-1.0.qstep.py
from wf import QorusNormalStep
class BasicsWorkflowSerialStep2Python(QorusNormalStep):
def primary(self):
UserApi.logInfo("BasicsWorkflowSerialStep2Python was called\nStatic data: %N\nDynamic data: %N",\
self.getStaticData(), self.getDynamicData())
# This is a generated file, don't edit!
type: step
name: BasicsWorkflowSerialStep2Python
desc: |-
## Simple worklfow step example
The step logs static and dynamic data of the order
lang: python
author:
- Qore Technologies, s.r.o.
base-class-name: QorusNormalStep
class-name: BasicsWorkflowSerialStep2Python
version: "1.0"
steptype: NORMAL
code: BasicsWorkflowSerialStep2Python-1.0.qstep.py
#!/usr/bin/env qore
%new-style
%strict-args
%require-types
%enable-all-warnings
%requires QorusClientCore
const WORKFLOW_NAME = "BASICS-WORKFLOW-SERIAL-STEPS-PYTHON";
const ORDER_DATA = {
"staticdata": {
"test": "data"
}
};
hash response = qrest.post("workflows/" + WORKFLOW_NAME + "?action=createOrder", ORDER_DATA);
printf("Response: %N", response);
\ No newline at end of file
# This is a generated file, don't edit!
type: step
name: BasicsWorkflowParallelStep1Java
desc: "Simple worklfow step example"
desc: "Simple workflow step example"
author:
- Qore Technologies, s.r.o.
base-class-name: QorusNormalStep
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment