{"id":28947,"date":"2021-08-14T18:42:08","date_gmt":"2021-08-14T17:42:08","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=28947"},"modified":"2021-08-23T13:14:03","modified_gmt":"2021-08-23T12:14:03","slug":"how-to-simulate-a-process-instance","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/process-apps\/how-to-articles\/how-to-simulate-a-process-instance\/","title":{"rendered":"How to Simulate a Process Instance?"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p>You can simulate the process app by selecting a trigger. The primary purpose of the simulator is to test the workflow. It displays all triggers applicable to the process app and you can select a trigger to simulate.<\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<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>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><span class=\"ez-toc-section\" id=\"Simulate_Process_App\"><strong>Simulate Process App<\/strong><\/span><\/h2>\n<p>To simulate your Process App, follow the below steps:<\/p>\n<ol>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">On the Flow page, click <b>Simulator<\/b> on the top-right.<br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">On the Simulations window, you can find the <b>Running<\/b> and <b>Completed<\/b> tabs that display the in-progress and completed simulations.<br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Click <b>+Simulation<\/b>.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210814183458\/Simulation.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-31320\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210814183458\/Simulation.jpg\" alt=\"\" width=\"781\" height=\"483\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210814183458\/Simulation.jpg 781w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210814183458\/Simulation-300x186.jpg 300w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><\/a><\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">On the Simulations window, you can find triggers. Select a trigger to test the workflow.<\/span><\/span>\n<ul>\n<li style=\"font-weight: 400;\">If the trigger type is a <strong>Form<\/strong>, the system opens up the form for you to submit.<\/li>\n<li style=\"font-weight: 400;\">If the trigger type is <strong>Callable<\/strong>, the system displays all the process apps that have <em>Call a Subflow<\/em> task and are associated with the current process app.\n<ul>\n<li style=\"font-weight: 400;\">Parent process apps are displayed.\n<ul>\n<li style=\"font-weight: 400;\">Select a parent process app to execute. On selection, the system displays the triggers applicable for the parent process app.<\/li>\n<li style=\"font-weight: 400;\">Select a trigger, and if the selected trigger is a form, you can submit it from the same screen. Else, a text message is displayed according to the trigger.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\">If the trigger type is <strong>Scheduled<\/strong>, the system allows you to schedule the process app execution.\n<ul>\n<li style=\"font-weight: 400;\">On the property panel, you can enter the input to trigger.<\/li>\n<li style=\"font-weight: 400;\">Enter the <em>limit<\/em> for the process app execution and based on the input, the scheduled trigger execution occurs.<\/li>\n<\/ul>\n<\/li>\n<li>If the trigger type is <strong>Conversational<\/strong>, you can select the bot to trigger the process app.\u00a0 Then, open the chat window in the process app to trigger it.<\/li>\n<li style=\"font-weight: 400;\">If the trigger type is <strong>Webhook<\/strong>, the system displays a text message against each trigger as shown below:\n<ul>\n<li style=\"font-weight: 400;\"><em>Webhook Trigger<\/em> &#8211; The system displays a text stating <em>Please do a post-call to the endpoint URL, and if posted successfully, check the execution status under simulator instances<\/em>.<\/li>\n<li style=\"font-weight: 400;\">A help text with payload data is added to notify you if simulated through a webhook. This is added as part of the payload for a simulator instance.<\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\">If the trigger type is <strong>Email<\/strong>, the system displays the below details to trigger a process app:\n<ul>\n<li style=\"font-weight: 400;\"><em>From Address<\/em> &#8211; It uses the default platform email setup to send the email to the process app email address.<\/li>\n<li style=\"font-weight: 400;\"><em>To Address<\/em> &#8211; This will default to the trigger email address of the process application<\/li>\n<li style=\"font-weight: 400;\"><em>Subject<\/em><\/li>\n<li style=\"font-weight: 400;\"><em>Compose message<\/em><\/li>\n<li style=\"font-weight: 400;\"><em>Trigger<\/em><\/li>\n<li style=\"font-weight: 400;\"><em>Email<\/em> &#8211; An email is sent successfully message is displayed on success. If failed, it displays an error message.<\/li>\n<li style=\"font-weight: 400;\">Process app is triggered if the email content matches the trigger definition.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Click <b>Exit Simulator<\/b> to exit the simulation process.<\/span><\/li>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210816181212\/Simulation1-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-31493\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210816181212\/Simulation1-1.jpg\" alt=\"\" width=\"779\" height=\"647\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210816181212\/Simulation1-1.jpg 779w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20210816181212\/Simulation1-1-300x249.jpg 300w\" sizes=\"auto, (max-width: 779px) 100vw, 779px\" \/><\/a><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<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>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><span class=\"ez-toc-section\" id=\"Simulator_Instances_Information\"><strong>Simulator Instances Information<\/strong><\/span><\/h2>\n<p>The system displays all the instances that you can execute in the process app. It also displays process apps that were simulated previously and allows you to check the details of the stimulated instance. You can find the following information:<\/p>\n<ul>\n<li style=\"font-weight: 400\">Instance Initiation Date &#038; Time\n<li style=\"font-weight: 400\">Trigger Type\n<li style=\"font-weight: 400\">Debug Logs\n<li style=\"font-weight: 400\">Nodes transitions displayed against each instance\n<li style=\"font-weight: 400\">Execution Started\n<li style=\"font-weight: 400\">Execution Successful\n<li style=\"font-weight: 400\">Step Failed\n<li style=\"font-weight: 400\">Date and Time\n<li style=\"font-weight: 400\">Context Data\n<li style=\"font-weight: 400\">Current Step\n<li style=\"font-weight: 400\">Instance Execution Status\n<li style=\"font-weight: 400\">In Progress\n<li style=\"font-weight: 400\">Failed\n<li style=\"font-weight: 400\">Completed<\/ul>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<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><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"You can simulate the process app by selecting a trigger. The primary purpose of the simulator is to test the workflow. It displays all triggers applicable to the process app and you can select a trigger to simulate. Simulate Process App To simulate your Process App, follow the below steps: On the Flow page, click...","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[160],"tags":[],"class_list":["post-28947","post","type-post","status-publish","format-standard","hentry","category-how-to-articles"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/28947","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/comments?post=28947"}],"version-history":[{"count":3,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/28947\/revisions"}],"predecessor-version":[{"id":31677,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/28947\/revisions\/31677"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=28947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=28947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=28947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}