@@ -315,6 +315,32 @@ public interface IWorkflowResourceApi : IApiAccessor
315
315
/// <param name="workflowId"></param>
316
316
/// <returns>ApiResponse of Object(void)</returns>
317
317
ApiResponse < Object > PauseWorkflowWithHttpInfo ( string workflowId ) ;
318
+ /// <summary>
319
+ /// Jump workflow execution to given task
320
+ /// </summary>
321
+ /// <remarks>
322
+ /// Jump workflow execution to given task.
323
+ /// </remarks>
324
+ /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
325
+ /// <param name="input"></param>
326
+ /// <param name="workflowId"></param>
327
+ /// <param name="taskReferenceName"> (optional)</param>
328
+ /// <returns></returns>
329
+ void JumpToTask ( string workflowId , Dictionary < string , Object > input , string taskReferenceName = null ) ;
330
+
331
+ /// <summary>
332
+ /// Jump workflow execution to given task
333
+ /// </summary>
334
+ /// <remarks>
335
+ /// Jump workflow execution to given task.
336
+ /// </remarks>
337
+ /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
338
+ /// <param name="body"></param>
339
+ /// <param name="workflowId"></param>
340
+ /// <param name="taskReferenceName"> (optional)</param>
341
+ /// <returns>ApiResponse of Object(void)</returns>
342
+ ApiResponse < Object > JumpToTaskWithHttpInfo ( Dictionary < string , Object > body , string workflowId , string taskReferenceName = null ) ;
343
+
318
344
/// <summary>
319
345
/// Reruns the workflow from a specific task
320
346
/// </summary>
@@ -1719,6 +1745,94 @@ public ApiResponse<Object> PauseWorkflowWithHttpInfo(string workflowId)
1719
1745
null ) ;
1720
1746
}
1721
1747
1748
+
1749
+ /// <summary>
1750
+ /// Jump workflow execution to given task Jump workflow execution to given task.
1751
+ /// </summary>
1752
+ /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
1753
+ /// <param name="input"></param>
1754
+ /// <param name="workflowId"></param>
1755
+ /// <param name="taskReferenceName"> (optional)</param>
1756
+ /// <returns></returns>
1757
+ public void JumpToTask ( string workflowId , Dictionary < string , Object > input , string taskReferenceName = null )
1758
+ {
1759
+ JumpToTaskWithHttpInfo ( input , workflowId , taskReferenceName ) ;
1760
+ }
1761
+
1762
+
1763
+ /// <summary>
1764
+ /// Jump workflow execution to given task Jump workflow execution to given task.
1765
+ /// </summary>
1766
+ /// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
1767
+ /// <param name="body"></param>
1768
+ /// <param name="workflowId"></param>
1769
+ /// <param name="taskReferenceName"> (optional)</param>
1770
+ /// <returns>ApiResponse of Object(void)</returns>
1771
+ public ApiResponse < Object > JumpToTaskWithHttpInfo ( Dictionary < string , Object > body , string workflowId , string taskReferenceName = null )
1772
+ {
1773
+ // verify the required parameter 'body' is set
1774
+ if ( body == null )
1775
+ throw new ApiException ( 400 , "Missing required parameter 'input' when calling WorkflowResourceApi->JumpToTask" ) ;
1776
+ // verify the required parameter 'workflowId' is set
1777
+ if ( workflowId == null )
1778
+ throw new ApiException ( 400 , "Missing required parameter 'workflowId' when calling WorkflowResourceApi->JumpToTask" ) ;
1779
+
1780
+ var localVarPath = "/workflow/{workflowId}/jump/{taskReferenceName}" ;
1781
+ var localVarPathParams = new Dictionary < String , String > ( ) ;
1782
+ var localVarQueryParams = new List < KeyValuePair < String , String > > ( ) ;
1783
+ var localVarHeaderParams = new Dictionary < String , String > ( this . Configuration . DefaultHeader ) ;
1784
+ var localVarFormParams = new Dictionary < String , String > ( ) ;
1785
+ var localVarFileParams = new Dictionary < String , FileParameter > ( ) ;
1786
+ Object localVarPostBody = null ;
1787
+
1788
+ // to determine the Content-Type header
1789
+ String [ ] localVarHttpContentTypes = new String [ ] {
1790
+ "application/json"
1791
+ } ;
1792
+ String localVarHttpContentType = this . Configuration . ApiClient . SelectHeaderContentType ( localVarHttpContentTypes ) ;
1793
+
1794
+ // to determine the Accept header
1795
+ String [ ] localVarHttpHeaderAccepts = new String [ ] {
1796
+ } ;
1797
+ String localVarHttpHeaderAccept = this . Configuration . ApiClient . SelectHeaderAccept ( localVarHttpHeaderAccepts ) ;
1798
+ if ( localVarHttpHeaderAccept != null )
1799
+ localVarHeaderParams . Add ( "Accept" , localVarHttpHeaderAccept ) ;
1800
+
1801
+ if ( workflowId != null ) localVarPathParams . Add ( "workflowId" , this . Configuration . ApiClient . ParameterToString ( workflowId ) ) ; // path parameter
1802
+ if ( taskReferenceName != null ) localVarQueryParams . AddRange ( this . Configuration . ApiClient . ParameterToKeyValuePairs ( "" , "taskReferenceName" , taskReferenceName ) ) ; // query parameter
1803
+ if ( body != null && body . GetType ( ) != typeof ( byte [ ] ) )
1804
+ {
1805
+ localVarPostBody = this . Configuration . ApiClient . Serialize ( body ) ; // http body (model) parameter
1806
+ }
1807
+ else
1808
+ {
1809
+ localVarPostBody = body ; // byte array
1810
+ }
1811
+ // authentication (api_key) required
1812
+ if ( ! String . IsNullOrEmpty ( this . Configuration . AccessToken ) )
1813
+ {
1814
+ localVarHeaderParams [ "X-Authorization" ] = this . Configuration . AccessToken ;
1815
+ }
1816
+
1817
+ // make the HTTP request
1818
+ IRestResponse localVarResponse = ( IRestResponse ) this . Configuration . ApiClient . CallApi ( localVarPath ,
1819
+ Method . POST , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarFileParams ,
1820
+ localVarPathParams , localVarHttpContentType ) ;
1821
+
1822
+ int localVarStatusCode = ( int ) localVarResponse . StatusCode ;
1823
+
1824
+ if ( ExceptionFactory != null )
1825
+ {
1826
+ Exception exception = ExceptionFactory ( "JumpToTask" , localVarResponse ) ;
1827
+ if ( exception != null ) throw exception ;
1828
+ }
1829
+
1830
+ return new ApiResponse < Object > ( localVarStatusCode ,
1831
+ localVarResponse . Headers . ToDictionary ( x => x . Name , x => string . Join ( "," , x . Value ) ) ,
1832
+ null ) ;
1833
+ }
1834
+
1835
+
1722
1836
/// <summary>
1723
1837
/// Reruns the workflow from a specific task
1724
1838
/// </summary>
0 commit comments