{"id":29564,"date":"2021-08-11T19:08:06","date_gmt":"2021-08-11T18:08:06","guid":{"rendered":"https:\/\/multisite.korebots.com\/v9-0\/?p=29564"},"modified":"2021-08-13T20:37:17","modified_gmt":"2021-08-13T19:37:17","slug":"call-a-subflow","status":"publish","type":"post","link":"https:\/\/multisite.korebots.com\/v9-0\/docs\/process-apps\/flow\/events\/call-a-subflow\/","title":{"rendered":"Call a Subflow"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row via_grid cols_1 laptops-cols_inherit tablets-cols_inherit mobiles-cols_1 valign_top type_default stacking_default\"><div class=\"wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><p><i><span style=\"font-weight: 400\">Call a Subflow<\/span><\/i><span style=\"font-weight: 400\"> event allows you to invoke an independent process app. For example, let us consider process apps for loan\/credit card payment requests which require OTP to authenticate and complete the process. Here, the OTP generation can be an independent application where any process app can invoke it and the OTP subflow will send the information back to the parent flow to continue the payment process.<\/span><\/p>\n<\/div><\/div><div class=\"w-separator size_medium with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h4><b>Configure a Subflow<\/b><\/h4>\n<p><span style=\"font-weight: 400\">To configure a Subflow in the process flow, follow the below steps:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the left pane, you can find the <\/span><b>Tasks <\/b><span style=\"font-weight: 400\">section. Drag and drop the <\/span><b>Subflow <\/b><span style=\"font-weight: 400\">stencil from this section to the builder.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click the <\/span><b>Subflow <\/b><span style=\"font-weight: 400\">stencil to open the Subflow<\/span> <span style=\"font-weight: 400\">window.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">On the Subflow window, enter the following details:<\/span>\n<ol>\n<li style=\"font-weight: 400\"><b>Name <\/b><span style=\"font-weight: 400\">&#8211; Enter a name for the subflow.<\/span><\/li>\n<li style=\"font-weight: 400\"><b>Process App<\/b><span style=\"font-weight: 400\"> &#8211; Select a Process App from the drop-down list.<\/span><\/li>\n<li><strong>Add a Condition<\/strong> &#8211; Define conditions based on <em>Process Fields, Form Fields, <\/em>and <em>Process Context<\/em>.<\/li>\n<li><strong>Transitions <\/strong>&#8211; Select any of the below options:\n<ul>\n<li>Initiate the <em>subflow<\/em>. Once complete, return to this step and resume <em>process app<\/em> execution. You can also add <em>variables<\/em>.<\/li>\n<li>Initiate the <em>subflow<\/em>\u00a0and continue with the <em>process app <\/em>execution.<\/li>\n<li>End the current <em>process app<\/em> execution and trigger the <em>process app<\/em>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Close the Subflow window.<\/span><\/li>\n<\/ol>\n<\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"Call a Subflow event allows you to invoke an independent process app. For example, let us consider process apps for loan\/credit card payment requests which require OTP to authenticate and complete the process. Here, the OTP generation can be an independent application where any process app can invoke it and the OTP subflow will send...","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[147],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/29564"}],"collection":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/comments?post=29564"}],"version-history":[{"count":4,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/29564\/revisions"}],"predecessor-version":[{"id":29872,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/29564\/revisions\/29872"}],"wp:attachment":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/media?parent=29564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/categories?post=29564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/tags?post=29564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}