11use crate :: services:: authentication:: * ;
22use crate :: services:: timeout:: * ;
3- use serverless_workflow_core :: models :: any :: * ;
3+ use serde_json :: Value ;
44use serverless_workflow_core:: models:: duration:: * ;
55use serverless_workflow_core:: models:: error:: * ;
66use serverless_workflow_core:: models:: event:: * ;
@@ -261,7 +261,7 @@ impl CalltaskDefinitionBuilder {
261261 }
262262
263263 /// Adds a new argument to call the function with
264- pub fn with ( & mut self , name : & str , value : AnyValue ) -> & mut Self {
264+ pub fn with ( & mut self , name : & str , value : Value ) -> & mut Self {
265265 if self . task . with . is_none ( ) {
266266 self . task . with = Some ( HashMap :: new ( ) ) ;
267267 }
@@ -272,7 +272,7 @@ impl CalltaskDefinitionBuilder {
272272 }
273273
274274 /// Sets the arguments to call the function with
275- pub fn with_arguments ( & mut self , arguments : HashMap < String , AnyValue > ) -> & mut Self {
275+ pub fn with_arguments ( & mut self , arguments : HashMap < String , Value > ) -> & mut Self {
276276 self . task . with = Some ( arguments) ;
277277 self
278278 }
@@ -1041,13 +1041,13 @@ impl SetTaskDefinitionBuilder{
10411041 }
10421042
10431043 /// Sets the specified variable
1044- pub fn variable ( & mut self , name : & str , value : AnyValue ) -> & mut Self {
1044+ pub fn variable ( & mut self , name : & str , value : Value ) -> & mut Self {
10451045 self . task . set . insert ( name. to_string ( ) , value) ;
10461046 self
10471047 }
10481048
10491049 /// Configures the task to set the specified variables
1050- pub fn variables ( & mut self , variables : HashMap < String , AnyValue > ) -> & mut Self {
1050+ pub fn variables ( & mut self , variables : HashMap < String , Value > ) -> & mut Self {
10511051 self . task . set = variables;
10521052 self
10531053 }
@@ -1385,13 +1385,13 @@ impl EventDefinitionBuilder{
13851385 }
13861386
13871387 /// Adds a new attribute to the event
1388- pub fn with ( & mut self , name : & str , value : AnyValue ) -> & mut Self {
1388+ pub fn with ( & mut self , name : & str , value : Value ) -> & mut Self {
13891389 self . event . with . insert ( name. to_string ( ) , value) ;
13901390 self
13911391 }
13921392
13931393 /// Sets the event's attributes
1394- pub fn with_attributes ( & mut self , attributes : HashMap < String , AnyValue > ) -> & mut Self {
1394+ pub fn with_attributes ( & mut self , attributes : HashMap < String , Value > ) -> & mut Self {
13951395 self . event . with = attributes;
13961396 self
13971397 }
@@ -1561,7 +1561,7 @@ impl EventFilterDefinitionBuilder{
15611561 }
15621562
15631563 /// Adds a new attribute to filter events by
1564- pub fn with ( & mut self , name : & str , value : AnyValue ) -> & mut Self {
1564+ pub fn with ( & mut self , name : & str , value : Value ) -> & mut Self {
15651565 if self . filter . with . is_none ( ) {
15661566 self . filter . with = Some ( HashMap :: new ( ) ) ;
15671567 }
@@ -1572,7 +1572,7 @@ impl EventFilterDefinitionBuilder{
15721572 }
15731573
15741574 /// Sets a name/value mapping of the attributes to filter events by
1575- pub fn with_attributes ( & mut self , attributes : HashMap < String , AnyValue > ) -> & mut Self {
1575+ pub fn with_attributes ( & mut self , attributes : HashMap < String , Value > ) -> & mut Self {
15761576 self . filter . with = Some ( attributes) ;
15771577 self
15781578 }
@@ -1659,7 +1659,7 @@ impl ErrorDefinitionBuilder{
16591659 }
16601660
16611661 /// Sets the error's status
1662- pub fn with_status ( & mut self , status : AnyValue ) -> & mut Self {
1662+ pub fn with_status ( & mut self , status : Value ) -> & mut Self {
16631663 self . error . status = status;
16641664 self
16651665 }
@@ -1952,7 +1952,7 @@ impl WorkflowProcessDefinitionBuilder{
19521952 }
19531953
19541954 /// Sets the input of the workflow to run
1955- pub fn with_input ( & mut self , input : AnyValue ) -> & mut Self {
1955+ pub fn with_input ( & mut self , input : Value ) -> & mut Self {
19561956 self . process . input = Some ( input) ;
19571957 self
19581958 }
@@ -2151,7 +2151,7 @@ impl ErrroFilterDefinitionBuilder{
21512151 }
21522152
21532153 /// Adds a new attribute filter
2154- pub fn with ( & mut self , name : & str , value : AnyValue ) -> & mut Self {
2154+ pub fn with ( & mut self , name : & str , value : Value ) -> & mut Self {
21552155 if self . filter . with . is_none ( ) {
21562156 self . filter . with = Some ( HashMap :: new ( ) ) ;
21572157 }
@@ -2162,7 +2162,7 @@ impl ErrroFilterDefinitionBuilder{
21622162 }
21632163
21642164 /// Sets a name/value mapping of the attributes to filter errors by
2165- pub fn with_attributes ( & mut self , attributes : HashMap < String , AnyValue > ) -> & mut Self {
2165+ pub fn with_attributes ( & mut self , attributes : HashMap < String , Value > ) -> & mut Self {
21662166 self . filter . with = Some ( attributes) ;
21672167 self
21682168 }
@@ -2485,7 +2485,7 @@ impl InputDataModelDefinitionBuilder{
24852485 }
24862486
24872487 /// Configures the expression used to filter the input
2488- pub fn from ( & mut self , expression : AnyValue ) -> & mut Self {
2488+ pub fn from ( & mut self , expression : Value ) -> & mut Self {
24892489 self . input . from = Some ( expression) ;
24902490 self
24912491 }
@@ -2509,7 +2509,7 @@ impl OutputDataModelDefinitionBuilder{
25092509 }
25102510
25112511 /// Sets a runtime expression, if any, used to output specific data to the scope data
2512- pub fn as_ ( & mut self , expression : AnyValue ) -> & mut Self {
2512+ pub fn as_ ( & mut self , expression : Value ) -> & mut Self {
25132513 self . output . as_ = Some ( expression) ;
25142514 self
25152515 }
@@ -2548,7 +2548,7 @@ impl SchemaDefinitionBuilder{
25482548 }
25492549
25502550 /// Sets the schema document
2551- pub fn with_document ( & mut self , document : AnyValue ) -> & mut Self {
2551+ pub fn with_document ( & mut self , document : Value ) -> & mut Self {
25522552 self . schema . document = Some ( document) ;
25532553 self
25542554 }
0 commit comments