# Workflow launcher not able to render Forms

**URL:** <https://developer.sailpoint.com/discuss/t/workflow-launcher-not-able-to-render-forms/71651>\
**Category:** IIQ Discussion and Questions\
**Tags:** identityiq, workflows\
**Created:** [July 9, 2024, 7:12pm UTC](https://developer.sailpoint.com/discuss/t/workflow-launcher-not-able-to-render-forms/71651 "2024-07-09T19:12:39Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![gargshub5](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@gargshub5](https://developer.sailpoint.com/discuss/u/gargshub5)\
**Post date:** [July 9, 2024, 7:12pm UTC](https://developer.sailpoint.com/discuss/t/workflow-launcher-not-able-to-render-forms/71651/1 "2024-07-09T19:12:39Z")

</div>

### Which IIQ version are you inquiring about?

Version 8.3

### Share all details related to your problem, including any error messages you may have received.

HI team,

I have a customized LCM registration workflow wherein we are launching forms for setting MFA and password (2 different forms) and it works fine via New User Registration link provided on the login page.

However, I am trying to launch the same workflow from a Rule via workflower, it is able to launch the workflow but it stays at start step and is not able to render the from marked in the next step after start.

Below is code I am triggering to launch workflow-

```auto
String wfName = "LCM Registration";
    Workflow workflow = (Workflow)context.getObjectByName(Workflow.class,wfName);

    launchArgs.put("identityName","00012");
    launchArgs.put("launcher","spadmin");
	    launchArgs.put("owner","spadmin");

    launchArgs.put("workflow",workflow.getId());

    WorkflowLaunch wfLaunch = new WorkflowLaunch();
    log.error("worklfow name " +workflow);
    if(null != workflow){
      wfLaunch.setWorkflow(workflow);
      wfLaunch.setWorkflowName(workflow.getName());
      wfLaunch.setWorkflowRef(workflow.getName());
      wfLaunch.setVariables(launchArgs);
      wfLaunch.setCaseName("LCM Registration");

      Workflower workflower = new Workflower(context);
      WorkflowLaunch Launch = workflower.launch(wfLaunch);
      
    }
    return "WF launched successfully";

```

Below is LCM registration WF-

```auto
Step icon="Start" name="Start" posX="178" posY="126">
    Script>
      Source>
      
      log.error("PRint inside workflow for lcm registeration launch via plugin ***************");
      
      /Source>
    /Script>
    Transition to="MFA Mobile Number"/>
  /Step>
Step name="MFA Mobile Number" posX="762" posY="126">
    Approval name="MFA User" owner="ref:launcher">
      Form name="MFA Mobile Number">
        Attributes>
          Map>
            entry key="hideIncompleteFields">
              value>
                Boolean></Boolean>
              /value>
            /entry>
            entry key="includeHiddenFields">
              value>
                Boolean></Boolean>
              /value>
            /entry>
            entry key="pageTitle" value="Password Reset"/>
          /Map>
        /Attributes>
        Section columns="2" label="Reset your password" name="PwdDetails">
          Field columnSpan="1" displayName="Enter your password" name="password" required="true" type="string"/>
          Field columnSpan="1" displayName="Re-Enter your password" name="cPassword" required="true" type="string"/>
        /Section>
      /Form>
    /Approval>
    Script>
      Source>
      
      log.error("PRint inside azure mfa step ");
      
      </Source>
    </Script>
    <Transition to="Azure MFA"/>
  </Step>

```

It is able to launch the first logger in the start step - PRint inside workflow for lcm registeration launch via plugin \*\*\*\*\*\*\*\*\*\*\*\*\*\*\* but not able to print the logger in MFA Mobile number step.

Any help will be really appreciated!!

---

<div class="post-metadata">

**Author:** ![gargshub5](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@gargshub5](https://developer.sailpoint.com/discuss/u/gargshub5)\
**Post date:** [July 9, 2024, 7:29pm UTC](https://developer.sailpoint.com/discuss/t/workflow-launcher-not-able-to-render-forms/71651/2 "2024-07-09T19:29:58Z")

</div>

@sharvari @kjakubiak Could you please help on this, I am have tried multiple approaches but struggling since a while

---

<div class="post-metadata">

**Author:** ![gargshub5](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@gargshub5](https://developer.sailpoint.com/discuss/u/gargshub5)\
**Post date:** [July 10, 2024, 6:17am UTC](https://developer.sailpoint.com/discuss/t/workflow-launcher-not-able-to-render-forms/71651/3 "2024-07-10T06:17:17Z")

</div>

@drosenbauer Could you please help here

---

<div class="post-metadata">

**Author:** ![iamksatish](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/iamksatish/32/26217_2.png) [@iamksatish](https://developer.sailpoint.com/discuss/u/iamksatish)\
**Post date:** [July 10, 2024, 6:39am UTC](https://developer.sailpoint.com/discuss/t/workflow-launcher-not-able-to-render-forms/71651/4 "2024-07-10T06:39:13Z")

</div>

Did you check if there is any open workflow case when you launch via code? Stuck at start step, if so can you share the same.

---

<div class="post-metadata">

**Author:** ![kjakubiak](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kjakubiak/32/7052_2.png) [@kjakubiak](https://developer.sailpoint.com/discuss/u/kjakubiak)\
**Post date:** [July 10, 2024, 10:06am UTC](https://developer.sailpoint.com/discuss/t/workflow-launcher-not-able-to-render-forms/71651/5 "2024-07-10T10:06:56Z")

</div>

Hi Shubham,  
I would suggest first to add trace=true as variable into your workflow so you will be able to track it’s execution in logs.

Second - if you schedule workflow do be started via workflower it’s actualy - perform maintenance task which needs to pick it up - check if this task is runinng successfully.

Last - I’ve never started workflow “now” I usualy schedule it in now+5 seconds - you can try to do the same maybe it will solve your problem.

---

<div class="post-metadata">

**Author:** ![gargshub5](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@gargshub5](https://developer.sailpoint.com/discuss/u/gargshub5)\
**Post date:** [July 10, 2024, 1:07pm UTC](https://developer.sailpoint.com/discuss/t/workflow-launcher-not-able-to-render-forms/71651/6 "2024-07-10T13:07:52Z")

</div>

HI Satish

NO the Workflow is not stuck at start step, I cannot see any pending workflow case.

---

<div class="post-metadata">

**Author:** ![gargshub5](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@gargshub5](https://developer.sailpoint.com/discuss/u/gargshub5)\
**Post date:** [July 10, 2024, 1:12pm UTC](https://developer.sailpoint.com/discuss/t/workflow-launcher-not-able-to-render-forms/71651/7 "2024-07-10T13:12:57Z")

</div>

sure @kjakubiak let me check and update it to you

---

<div class="post-metadata">

**Author:** ![vinnysail](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/vinnysail/32/17001_2.png) [@vinnysail](https://developer.sailpoint.com/discuss/u/vinnysail)\
**Post date:** [July 10, 2024, 1:21pm UTC](https://developer.sailpoint.com/discuss/t/workflow-launcher-not-able-to-render-forms/71651/8 "2024-07-10T13:21:08Z")

</div>

In addition to what Kamil has mentioned, please add log.debug loggers to see at which step you have an issue that way you can trace the workflow.

---

<div class="post-metadata">

**Author:** ![gargshub5](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@gargshub5](https://developer.sailpoint.com/discuss/u/gargshub5)\
**Post date:** [July 10, 2024, 9:22pm UTC](https://developer.sailpoint.com/discuss/t/workflow-launcher-not-able-to-render-forms/71651/9 "2024-07-10T21:22:59Z")

</div>

HI Kamil

I tried the options you mentioned but seems workflow is not going to step it has approval tag for forms inside it, I have a normal step without workitem form then it’s doing those operations but not able to load the form on the MFA step.

I have tried multiple approaches but while launching workflow from plugin java class from workflower it’s not loading the form for MFA and password reset at all.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [September 8, 2024, 9:23pm UTC](https://developer.sailpoint.com/discuss/t/workflow-launcher-not-able-to-render-forms/71651/10 "2024-09-08T21:23:22Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
