kuflow-temporal-workflow-kuflow 2.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- README.md +19 -0
- VERSION +1 -0
- kuflow_temporal_workflow_kuflow/__init__.py +34 -0
- kuflow_temporal_workflow_kuflow/_attributes.py +41 -0
- kuflow_temporal_workflow_kuflow/_uuid7.py +58 -0
- kuflow_temporal_workflow_kuflow/models/__init__.py +59 -0
- kuflow_temporal_workflow_kuflow/models/_enums.py +32 -0
- kuflow_temporal_workflow_kuflow/models/_models.py +176 -0
- kuflow_temporal_workflow_kuflow-2.0.0.dist-info/METADATA +40 -0
- kuflow_temporal_workflow_kuflow-2.0.0.dist-info/RECORD +11 -0
- kuflow_temporal_workflow_kuflow-2.0.0.dist-info/WHEEL +4 -0
README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
[](https://github.com/kuflow/kuflow-sdk-python/blob/master/LICENSE)
|
|
2
|
+
[](https://pypi.org/project/kuflow-temporal-workflow-kuflow)
|
|
3
|
+
[](https://pypi.org/project/kuflow-temporal-workflow-kuflow)
|
|
4
|
+
|
|
5
|
+
# KuFlow Temporal Common
|
|
6
|
+
|
|
7
|
+
TODO
|
|
8
|
+
|
|
9
|
+
## Documentation
|
|
10
|
+
|
|
11
|
+
More detailed docs are available in the [documentation pages](https://docs.kuflow.com/developers/).
|
|
12
|
+
|
|
13
|
+
## Contributing
|
|
14
|
+
|
|
15
|
+
We are happy to receive your help and comments, together we will dance a wonderful KuFlow. Please review our [contribution guide](CONTRIBUTING.md).
|
|
16
|
+
|
|
17
|
+
## License
|
|
18
|
+
|
|
19
|
+
[MIT License](https://github.com/kuflow/kuflow-sdk-python/blob/master/LICENSE)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#
|
|
2
|
+
# MIT License
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2022 KuFlow
|
|
5
|
+
#
|
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
# in the Software without restriction, including without limitation the rights
|
|
9
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
# furnished to do so, subject to the following conditions:
|
|
12
|
+
#
|
|
13
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
# copies or substantial portions of the Software.
|
|
15
|
+
#
|
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
# SOFTWARE.
|
|
23
|
+
#
|
|
24
|
+
|
|
25
|
+
from ._attributes import WorkflowSearchAttribute
|
|
26
|
+
from ._uuid7 import uuid7
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
__all__ = [
|
|
30
|
+
"uuid7",
|
|
31
|
+
"WorkflowSearchAttribute",
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
__version__ = "2.0.0.dev0"
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#
|
|
2
|
+
# MIT License
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2022 KuFlow
|
|
5
|
+
#
|
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
# in the Software without restriction, including without limitation the rights
|
|
9
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
# furnished to do so, subject to the following conditions:
|
|
12
|
+
#
|
|
13
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
# copies or substantial portions of the Software.
|
|
15
|
+
#
|
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
# SOFTWARE.
|
|
23
|
+
#
|
|
24
|
+
|
|
25
|
+
from enum import Enum
|
|
26
|
+
|
|
27
|
+
from temporalio.common import SearchAttributeIndexedValueType
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class WorkflowSearchAttribute(Enum):
|
|
31
|
+
KUFLOW_WORKFLOW_VERSION = "KuFlowWorkflowVersion", SearchAttributeIndexedValueType.INT
|
|
32
|
+
|
|
33
|
+
def __init__(self, key, indexed_value_type):
|
|
34
|
+
self.key = key
|
|
35
|
+
self.indexed_value_type = indexed_value_type
|
|
36
|
+
|
|
37
|
+
def get_key(self):
|
|
38
|
+
return self.key
|
|
39
|
+
|
|
40
|
+
def get_indexed_value_type(self):
|
|
41
|
+
return self.indexed_value_type
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
#
|
|
2
|
+
# MIT License
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2022 KuFlow
|
|
5
|
+
#
|
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
# in the Software without restriction, including without limitation the rights
|
|
9
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
# furnished to do so, subject to the following conditions:
|
|
12
|
+
#
|
|
13
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
# copies or substantial portions of the Software.
|
|
15
|
+
#
|
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
# SOFTWARE.
|
|
23
|
+
#
|
|
24
|
+
|
|
25
|
+
import uuid
|
|
26
|
+
|
|
27
|
+
from temporalio import workflow
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def uuid7() -> uuid.UUID:
|
|
31
|
+
"""Get a new, determinism-safe v7 UUID based on :py:func:`random`.
|
|
32
|
+
|
|
33
|
+
Note, this UUID is not cryptographically safe and should not be used for
|
|
34
|
+
security purposes.
|
|
35
|
+
|
|
36
|
+
Returns:
|
|
37
|
+
A deterministically-seeded v7 UUID.
|
|
38
|
+
"""
|
|
39
|
+
# random bytes
|
|
40
|
+
random_bytes = workflow.random().getrandbits(16 * 8).to_bytes(16, "big")
|
|
41
|
+
value = bytearray(random_bytes)
|
|
42
|
+
|
|
43
|
+
# current timestamp in ms
|
|
44
|
+
timestamp = int(workflow.time_ns() / 1_000_000)
|
|
45
|
+
|
|
46
|
+
# timestamp
|
|
47
|
+
value[0] = (timestamp >> 40) & 0xFF
|
|
48
|
+
value[1] = (timestamp >> 32) & 0xFF
|
|
49
|
+
value[2] = (timestamp >> 24) & 0xFF
|
|
50
|
+
value[3] = (timestamp >> 16) & 0xFF
|
|
51
|
+
value[4] = (timestamp >> 8) & 0xFF
|
|
52
|
+
value[5] = timestamp & 0xFF
|
|
53
|
+
|
|
54
|
+
# version and variant
|
|
55
|
+
value[6] = (value[6] & 0x0F) | 0x70
|
|
56
|
+
value[8] = (value[8] & 0x3F) | 0x80
|
|
57
|
+
|
|
58
|
+
return uuid.UUID(bytes=bytes(value))
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
#
|
|
2
|
+
# MIT License
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2022 KuFlow
|
|
5
|
+
#
|
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
# in the Software without restriction, including without limitation the rights
|
|
9
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
# furnished to do so, subject to the following conditions:
|
|
12
|
+
#
|
|
13
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
# copies or substantial portions of the Software.
|
|
15
|
+
#
|
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
# SOFTWARE.
|
|
23
|
+
#
|
|
24
|
+
|
|
25
|
+
from ._enums import SignalProcessItemType
|
|
26
|
+
from ._models import (
|
|
27
|
+
KUFLOW_ENGINE_SIGNAL_PROCESS_ITEM,
|
|
28
|
+
RobotWorkflowRequest,
|
|
29
|
+
RobotWorkflowResponse,
|
|
30
|
+
SignalProcessItem,
|
|
31
|
+
SignalProcessItemPayload,
|
|
32
|
+
UserActionWorkflowRequest,
|
|
33
|
+
UserActionWorkflowResponse,
|
|
34
|
+
WorkflowRequest,
|
|
35
|
+
WorkflowResponse,
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
__all__ = [
|
|
40
|
+
"KUFLOW_ENGINE_SIGNAL_PROCESS_ITEM",
|
|
41
|
+
"RobotWorkflowRequest",
|
|
42
|
+
"RobotWorkflowResponse",
|
|
43
|
+
"SignalProcessItem",
|
|
44
|
+
"SignalProcessItemPayload",
|
|
45
|
+
"SignalProcessItemType",
|
|
46
|
+
"UserActionWorkflowRequest",
|
|
47
|
+
"UserActionWorkflowResponse",
|
|
48
|
+
"WorkflowRequest",
|
|
49
|
+
"WorkflowResponse",
|
|
50
|
+
]
|
|
51
|
+
|
|
52
|
+
from kuflow_rest import models as models_rest
|
|
53
|
+
from kuflow_temporal_common import register_serializable_models
|
|
54
|
+
|
|
55
|
+
from .. import models as models_workflow
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
register_serializable_models(models_rest.__dict__)
|
|
59
|
+
register_serializable_models(models_workflow.__dict__)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#
|
|
2
|
+
# MIT License
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2022 KuFlow
|
|
5
|
+
#
|
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
# in the Software without restriction, including without limitation the rights
|
|
9
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
# furnished to do so, subject to the following conditions:
|
|
12
|
+
#
|
|
13
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
# copies or substantial portions of the Software.
|
|
15
|
+
#
|
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
# SOFTWARE.
|
|
23
|
+
#
|
|
24
|
+
|
|
25
|
+
from enum import Enum
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class SignalProcessItemType(str, Enum):
|
|
29
|
+
"""SignalProcessItemType."""
|
|
30
|
+
|
|
31
|
+
TASK = "TASK"
|
|
32
|
+
MESSAGE = "MESSAGE"
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
#
|
|
2
|
+
# MIT License
|
|
3
|
+
#
|
|
4
|
+
# Copyright (c) 2022 KuFlow
|
|
5
|
+
#
|
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
# in the Software without restriction, including without limitation the rights
|
|
9
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
# furnished to do so, subject to the following conditions:
|
|
12
|
+
#
|
|
13
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
# copies or substantial portions of the Software.
|
|
15
|
+
#
|
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
# SOFTWARE.
|
|
23
|
+
#
|
|
24
|
+
|
|
25
|
+
from typing import TYPE_CHECKING, Any, Optional
|
|
26
|
+
|
|
27
|
+
from kuflow_rest._generated import _serialization
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
if TYPE_CHECKING:
|
|
31
|
+
from .. import models as _models
|
|
32
|
+
|
|
33
|
+
KUFLOW_ENGINE_SIGNAL_PROCESS_ITEM = "KuFlow_Engine_Signal_Process_Item"
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class WorkflowRequest(_serialization.Model):
|
|
37
|
+
_attribute_map = {
|
|
38
|
+
"process_id": {"key": "processId", "type": "str"},
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
def __init__(self, process_id: str, **kwargs: Any) -> None:
|
|
42
|
+
"""
|
|
43
|
+
Parameters:
|
|
44
|
+
process_id: Identifier of the related created process
|
|
45
|
+
"""
|
|
46
|
+
super().__init__(**kwargs)
|
|
47
|
+
self.process_id = process_id
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class WorkflowResponse(_serialization.Model):
|
|
51
|
+
_attribute_map = {
|
|
52
|
+
"message": {"key": "message", "type": "str"},
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
def __init__(self, message: Optional[str] = None, **kwargs: Any) -> None:
|
|
56
|
+
"""
|
|
57
|
+
Parameters:
|
|
58
|
+
message: Response message
|
|
59
|
+
"""
|
|
60
|
+
super().__init__(**kwargs)
|
|
61
|
+
self.message = message
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class UserActionWorkflowRequest(_serialization.Model):
|
|
65
|
+
_attribute_map = {
|
|
66
|
+
"process_id": {"key": "processId", "type": "str"},
|
|
67
|
+
"user_action_definition_code": {"key": "userActionDefinitionCode", "type": "str"},
|
|
68
|
+
"user_action_id": {"key": "userActionId", "type": "str"},
|
|
69
|
+
"requestor_principal_id": {"key": "requestorPrincipalId", "type": "str"},
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
def __init__(
|
|
73
|
+
self,
|
|
74
|
+
process_id: str,
|
|
75
|
+
user_action_definition_code: str,
|
|
76
|
+
user_action_id: str,
|
|
77
|
+
requestor_principal_id: str,
|
|
78
|
+
**kwargs: Any,
|
|
79
|
+
) -> None:
|
|
80
|
+
"""
|
|
81
|
+
Parameters:
|
|
82
|
+
process_id: Identifier of the related process
|
|
83
|
+
user_action_definition_code: Code of the user action definition
|
|
84
|
+
user_action_id: Identifier of the user action
|
|
85
|
+
requestor_principal_id: Identifier of the principal that request the user action
|
|
86
|
+
"""
|
|
87
|
+
super().__init__(**kwargs)
|
|
88
|
+
self.process_id = process_id
|
|
89
|
+
self.user_action_definition_code = user_action_definition_code
|
|
90
|
+
self.user_action_id = user_action_id
|
|
91
|
+
self.requestor_principal_id = requestor_principal_id
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
class UserActionWorkflowResponse(_serialization.Model):
|
|
95
|
+
_attribute_map = {
|
|
96
|
+
"message": {"key": "message", "type": "str"},
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
def __init__(self, message: Optional[str] = None, **kwargs: Any) -> None:
|
|
100
|
+
"""
|
|
101
|
+
Parameters:
|
|
102
|
+
message: User action message response
|
|
103
|
+
"""
|
|
104
|
+
super().__init__(**kwargs)
|
|
105
|
+
self.message = message
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
class RobotWorkflowRequest(_serialization.Model):
|
|
109
|
+
_attribute_map = {
|
|
110
|
+
"process_id": {"key": "processId", "type": "str"},
|
|
111
|
+
"task_id": {"key": "taskId", "type": "str"},
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
def __init__(self, process_id: str, task_id: str, **kwargs: Any) -> None:
|
|
115
|
+
"""
|
|
116
|
+
Parameters:
|
|
117
|
+
process_id: Identifier of the related created process
|
|
118
|
+
"""
|
|
119
|
+
super().__init__(**kwargs)
|
|
120
|
+
self.process_id = process_id
|
|
121
|
+
self.task_id = task_id
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
class RobotWorkflowResponse(_serialization.Model):
|
|
125
|
+
_attribute_map = {
|
|
126
|
+
"message": {"key": "message", "type": "str"},
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
def __init__(self, message: Optional[str] = None, **kwargs: Any) -> None:
|
|
130
|
+
"""
|
|
131
|
+
Parameters:
|
|
132
|
+
message: Response message
|
|
133
|
+
"""
|
|
134
|
+
super().__init__(**kwargs)
|
|
135
|
+
self.message = message
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
class SignalProcessItemPayload(_serialization.Model):
|
|
139
|
+
_attribute_map = {
|
|
140
|
+
"task_definition_code": {"key": "taskDefinitionCode", "type": "str"},
|
|
141
|
+
"data_structure_data_definition_code": {"key": "dataStructureDataDefinitionCode", "type": "str"},
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
def __init__(
|
|
145
|
+
self, task_definition_code: Optional[str], data_structure_data_definition_code: Optional[str], **kwargs: Any
|
|
146
|
+
) -> None:
|
|
147
|
+
"""
|
|
148
|
+
Parameters:
|
|
149
|
+
task_definition_code: Task definition code
|
|
150
|
+
data_structure_data_definition_code: Data structure data definition code
|
|
151
|
+
"""
|
|
152
|
+
super().__init__(**kwargs)
|
|
153
|
+
self.task_definition_code = task_definition_code
|
|
154
|
+
self.data_structure_data_definition_code = data_structure_data_definition_code
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
class SignalProcessItem(_serialization.Model):
|
|
158
|
+
_attribute_map = {
|
|
159
|
+
"id": {"key": "id", "type": "str"},
|
|
160
|
+
"type": {"key": "type", "type": "str"},
|
|
161
|
+
"payload": {"key": "payload", "type": "SignalProcessItemPayload"},
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
def __init__(
|
|
165
|
+
self, id: str, type: "_models.SignalProcessItemType", payload: "_models.SignalProcessItemPayload", **kwargs: Any
|
|
166
|
+
) -> None:
|
|
167
|
+
"""
|
|
168
|
+
Parameters:
|
|
169
|
+
id: Process item Id
|
|
170
|
+
type: Process item type
|
|
171
|
+
payload: Process item signal payload
|
|
172
|
+
"""
|
|
173
|
+
super().__init__(**kwargs)
|
|
174
|
+
self.id = id
|
|
175
|
+
self.type = type
|
|
176
|
+
self.payload = payload
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: kuflow-temporal-workflow-kuflow
|
|
3
|
+
Version: 2.0.0
|
|
4
|
+
Summary: KuFlow SDK :: Temporal.io workflow utilities to interact with KuFlow
|
|
5
|
+
Home-page: https://kuflow.com/
|
|
6
|
+
License: MIT
|
|
7
|
+
Author: KuFlow S.L.
|
|
8
|
+
Author-email: kuflow@kuflow.com
|
|
9
|
+
Requires-Python: >=3.8,<4.0
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Requires-Dist: kuflow-temporal-common (>=2.0.0,<3.0.0)
|
|
17
|
+
Project-URL: Documentation, https://docs.kuflow.com/
|
|
18
|
+
Project-URL: Repository, https://github.com/kuflow/kuflow-sdk-python
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
[](https://github.com/kuflow/kuflow-sdk-python/blob/master/LICENSE)
|
|
22
|
+
[](https://pypi.org/project/kuflow-temporal-workflow-kuflow)
|
|
23
|
+
[](https://pypi.org/project/kuflow-temporal-workflow-kuflow)
|
|
24
|
+
|
|
25
|
+
# KuFlow Temporal Common
|
|
26
|
+
|
|
27
|
+
TODO
|
|
28
|
+
|
|
29
|
+
## Documentation
|
|
30
|
+
|
|
31
|
+
More detailed docs are available in the [documentation pages](https://docs.kuflow.com/developers/).
|
|
32
|
+
|
|
33
|
+
## Contributing
|
|
34
|
+
|
|
35
|
+
We are happy to receive your help and comments, together we will dance a wonderful KuFlow. Please review our [contribution guide](CONTRIBUTING.md).
|
|
36
|
+
|
|
37
|
+
## License
|
|
38
|
+
|
|
39
|
+
[MIT License](https://github.com/kuflow/kuflow-sdk-python/blob/master/LICENSE)
|
|
40
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
README.md,sha256=CG-7siqajPWHKyMVhqKQJ_IhL0gGKFu6dJHtRg0XA60,825
|
|
2
|
+
VERSION,sha256=wo_MpTY3vIjhJK8XJd8Ty5jGne3v1i-zzb4c22t2BiQ,6
|
|
3
|
+
kuflow_temporal_workflow_kuflow/__init__.py,sha256=6RCqW81p8CvacE2KGIBtYjKu5UwXW7xVdX0PpARqGS8,1269
|
|
4
|
+
kuflow_temporal_workflow_kuflow/_attributes.py,sha256=fkBiIK1dyTlK6uh3VX1DCr05R8W66WppeByyuEMJTvg,1573
|
|
5
|
+
kuflow_temporal_workflow_kuflow/_uuid7.py,sha256=m4m66GrxZJtVIJzgON-WA8dYhwYCgOUj_OWgk2JJzQg,2029
|
|
6
|
+
kuflow_temporal_workflow_kuflow/models/__init__.py,sha256=1oiP9wF8fDWewJP04jiV93RGrtCy55FeFmzdMisoo5g,1999
|
|
7
|
+
kuflow_temporal_workflow_kuflow/models/_enums.py,sha256=N9DBpP8ZX7ZaZ-qyqFQ1SeIkse4GlxIrgd5fXDe0h_A,1246
|
|
8
|
+
kuflow_temporal_workflow_kuflow/models/_models.py,sha256=Dttwxo86WYZ_JYXJgFa56aUO3zJWp87E6DjS62jXXms,5925
|
|
9
|
+
kuflow_temporal_workflow_kuflow-2.0.0.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
|
|
10
|
+
kuflow_temporal_workflow_kuflow-2.0.0.dist-info/METADATA,sha256=cg7m1zrCy6Ah2Gqk-X6mMim9tgkbaPaU7Je4gx_VamY,1622
|
|
11
|
+
kuflow_temporal_workflow_kuflow-2.0.0.dist-info/RECORD,,
|