@@ -772,14 +772,26 @@ public App viewClosed(Pattern callbackId, ViewClosedHandler handler) {
772772 // Workflows: Steps from Apps
773773 // https://api.slack.com/workflows/steps
774774
775+ /**
776+ * @deprecated Use new custom steps: https://api.slack.com/automation/functions/custom-bolt
777+ */
778+ @ Deprecated
775779 public App step (WorkflowStep step ) {
776780 return this .use (step );
777781 }
778782
783+ /**
784+ * @deprecated Use new custom steps: https://api.slack.com/automation/functions/custom-bolt
785+ */
786+ @ Deprecated
779787 public App workflowStepEdit (String callbackId , WorkflowStepEditHandler handler ) {
780788 return workflowStepEdit (Pattern .compile ("^" + Pattern .quote (callbackId ) + "$" ), handler );
781789 }
782790
791+ /**
792+ * @deprecated Use new custom steps: https://api.slack.com/automation/functions/custom-bolt
793+ */
794+ @ Deprecated
783795 public App workflowStepEdit (Pattern callbackId , WorkflowStepEditHandler handler ) {
784796 if (workflowStepEditHandlers .get (callbackId ) != null ) {
785797 log .warn ("Replaced the handler for {}" , callbackId );
@@ -788,10 +800,18 @@ public App workflowStepEdit(Pattern callbackId, WorkflowStepEditHandler handler)
788800 return this ;
789801 }
790802
803+ /**
804+ * @deprecated Use new custom steps: https://api.slack.com/automation/functions/custom-bolt
805+ */
806+ @ Deprecated
791807 public App workflowStepSave (String callbackId , WorkflowStepSaveHandler handler ) {
792808 return workflowStepSave (Pattern .compile ("^" + Pattern .quote (callbackId ) + "$" ), handler );
793809 }
794810
811+ /**
812+ * @deprecated Use new custom steps: https://api.slack.com/automation/functions/custom-bolt
813+ */
814+ @ Deprecated
795815 public App workflowStepSave (Pattern callbackId , WorkflowStepSaveHandler handler ) {
796816 if (workflowStepSaveHandlers .get (callbackId ) != null ) {
797817 log .warn ("Replaced the handler for {}" , callbackId );
@@ -800,10 +820,18 @@ public App workflowStepSave(Pattern callbackId, WorkflowStepSaveHandler handler)
800820 return this ;
801821 }
802822
823+ /**
824+ * @deprecated Use new custom steps: https://api.slack.com/automation/functions/custom-bolt
825+ */
826+ @ Deprecated
803827 public App workflowStepExecute (String pattern , WorkflowStepExecuteHandler handler ) {
804828 return workflowStepExecute (Pattern .compile ("^.*" + Pattern .quote (pattern ) + ".*$" ), handler );
805829 }
806830
831+ /**
832+ * @deprecated Use new custom steps: https://api.slack.com/automation/functions/custom-bolt
833+ */
834+ @ Deprecated
807835 public App workflowStepExecute (Pattern pattern , WorkflowStepExecuteHandler handler ) {
808836 if (workflowStepExecuteHandlers .get (pattern ) != null ) {
809837 log .warn ("Replaced the handler for {}" , pattern );
0 commit comments