Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
qorus
training
Commits
dd2ecca8
Commit
dd2ecca8
authored
Oct 26, 2020
by
Francois Dziedzinl
Browse files
Feature/5.0 upgrade
parent
bde8dc93
Changes
205
Hide whitespace changes
Inline
Side-by-side
03_basics/01_exchange_rates_app/01_job/python/basics-logging-job-python-1.0.qjob.py
0 → 100644
View file @
dd2ecca8
from
job
import
QorusJob
class
BasicsLoggingJobPython
(
QorusJob
):
def
run
(
self
):
UserApi
.
logInfo
(
"job info: %y"
,
self
.
getInfo
())
03_basics/01_exchange_rates_app/01_job/python/basics-logging-job-python-1.0.qjob.yaml
0 → 100644
View file @
dd2ecca8
# 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
03_basics/01_exchange_rates_app/01_job/qore/basics-logging-job-1.0.qjob.yaml
View file @
dd2ecca8
# 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
:
"
*"
...
...
03_basics/01_exchange_rates_app/02_service/python/basics-simple-service-python-1.0.qsd.py
0 → 100644
View file @
dd2ecca8
from
svc
import
QorusService
class
BasicsSimpleServicePython
(
QorusService
):
def
init
(
self
):
UserApi
.
logInfo
(
"service is initialized"
)
03_basics/01_exchange_rates_app/02_service/python/basics-simple-service-python-1.0.qsd.yaml
0 → 100644
View file @
dd2ecca8
# 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
03_basics/01_exchange_rates_app/02_service/qore/basics-simple-service-1.0.qsd.yaml
View file @
dd2ecca8
# 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
...
...
03_basics/01_exchange_rates_app/03_workflow/java/BASICS-SIMPLE-WORKFLOW-JAVA-1.0.yaml
→
03_basics/01_exchange_rates_app/03_workflow/java/BASICS-SIMPLE-WORKFLOW-JAVA-1.0.
qwf.
yaml
View file @
dd2ecca8
# 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
03_basics/01_exchange_rates_app/03_workflow/python/BASICS-SIMPLE-WORKFLOW-PYTHON-1.0.qwf.yaml
0 → 100644
View file @
dd2ecca8
# 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"
]
03_basics/01_exchange_rates_app/03_workflow/python/BasicsSimpleWorkflowStepPython-1.0.qstep.py
0 → 100644
View file @
dd2ecca8
from
wf
import
QorusNormalStep
class
BasicsSimpleWorkflowStepPython
(
QorusNormalStep
):
def
primary
(
self
):
UserApi
.
logInfo
(
"BasicsSimpleWorkflowStep was called"
)
03_basics/01_exchange_rates_app/03_workflow/python/BasicsSimpleWorkflowStepPython-1.0.qstep.yaml
0 → 100644
View file @
dd2ecca8
# 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
03_basics/01_exchange_rates_app/03_workflow/python/create_order-post_reload.qscript
0 → 100644
View file @
dd2ecca8
#!/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
03_basics/01_exchange_rates_app/04_workflow_serial_steps/java/BASICS-WORKFLOW-SERIAL-STEPS-JAVA-1.0.yaml
→
03_basics/01_exchange_rates_app/04_workflow_serial_steps/java/BASICS-WORKFLOW-SERIAL-STEPS-JAVA-1.0.
qwf.
yaml
View file @
dd2ecca8
# 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
03_basics/01_exchange_rates_app/04_workflow_serial_steps/java/BasicsWorkflowSerialStep1-1.0.qstep.yaml
→
03_basics/01_exchange_rates_app/04_workflow_serial_steps/java/BasicsWorkflowSerialStep1
Java
-1.0.qstep.yaml
View file @
dd2ecca8
# This is a generated file, don't edit!
type
:
step
name
:
BasicsWorkflowSerialStep1Java
desc
:
"
##
Simple
worklfow
step
example
\n
It
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
03_basics/01_exchange_rates_app/04_workflow_serial_steps/python/BASICS-WORKFLOW-SERIAL-STEPS-PYTHON-1.0.qwf.yaml
0 → 100644
View file @
dd2ecca8
# 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"
]
03_basics/01_exchange_rates_app/04_workflow_serial_steps/python/BasicsWorkflowSerialStep1Python-1.0.qstep.py
0 → 100644
View file @
dd2ecca8
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
)
03_basics/01_exchange_rates_app/04_workflow_serial_steps/python/BasicsWorkflowSerialStep1Python-1.0.qstep.yaml
0 → 100644
View file @
dd2ecca8
# This is a generated file, don't edit!
type
:
step
name
:
BasicsWorkflowSerialStep1Python
desc
:
"
##
Simple
worklfow
step
example
\n
It
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
03_basics/01_exchange_rates_app/04_workflow_serial_steps/python/BasicsWorkflowSerialStep2Python-1.0.qstep.py
0 → 100644
View file @
dd2ecca8
from
wf
import
QorusNormalStep
class
BasicsWorkflowSerialStep2Python
(
QorusNormalStep
):
def
primary
(
self
):
UserApi
.
logInfo
(
"BasicsWorkflowSerialStep2Python was called
\n
Static data: %N
\n
Dynamic data: %N"
,
\
self
.
getStaticData
(),
self
.
getDynamicData
())
03_basics/01_exchange_rates_app/04_workflow_serial_steps/python/BasicsWorkflowSerialStep2Python-1.0.qstep.yaml
0 → 100644
View file @
dd2ecca8
# 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
03_basics/01_exchange_rates_app/04_workflow_serial_steps/python/create_order-post_reload.qscript
0 → 100644
View file @
dd2ecca8
#!/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
03_basics/01_exchange_rates_app/05_workflow_parallel_steps/java/BasicsWorkflowParallelStep1Java-1.0.qstep.yaml
View file @
dd2ecca8
# This is a generated file, don't edit!
type
:
step
name
:
BasicsWorkflowParallelStep1Java
desc
:
"
Simple
work
l
fow
step
example"
desc
:
"
Simple
workf
l
ow
step
example"
author
:
-
Qore Technologies, s.r.o.
base-class-name
:
QorusNormalStep
...
...
Prev
1
2
3
4
5
…
11
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment