A new form calling a workflow - how!?

Hey,
I am having trouble getting a new form to call a new workflow. Can anyone show me an example?
Thanks

I have now sorted this problem....
I had to add the process to the Anonymous User Tasks (one items with a hammer in the repository list of the BPE)
<!-- MemberObjectGroups="#ID#Top" configType="ArrayList" id="#ID#Configuration:AnonymousUserTasks" lastMod="203" lastModifier="Configurator" name="Anonymous User Tasks"-->
<Configuration id='#ID#Configuration:AnonymousUserTasks' name='Anonymous User Tasks' lock='Configurator#1137403812343' creator='%STARTUP%Configurator' createDate='1125418979453' lastModifier='Configurator' lastModDate='1137403512171' lastMod='203'>
<Extension>
<List>
<List>
<String>HMRC Activate Account</String>
</List>
</List>
</Extension>
<MemberObjectGroups>
<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
</MemberObjectGroups>
<Properties>
<Property name='editorOriginalName' value='Anonymous User Tasks'/>
</Properties>
</Configuration>
Also I had to give the Process an Authorization Type of EndUserTask: (authType=EndUserTask - which can be set in the BPE using the gui rather than editing the xml direct - The repository tab has am Athorization Type input field)
<!-- MemberObjectGroups="#ID#Top" authType="EndUserTask" createDate="Mon Jan 16 09:22:22 GMT 2006" id="#ID#83C73894692744DA:974600:1089EC7FF41:-7F69" name="HMRC Activate Account" taskType="Workflow" visibility="runschedule"-->
<TaskDefinition authType='EndUserTask' id='#ID#83C73894692744DA:974600:1089EC7FF41:-7F69' name='HMRC Activate Account' creator='Configurator' createDate='1137403342156' lastModifier='Configurator' lastModDate='1137403457906' lastMod='379' taskType='Workflow' executor='com.waveset.workflow.WorkflowExecutor' suspendable='true' syncControlAllowed='true' execMode='sync' execLimit='0' resultLimit='0' resultOption='delete' visibility='runschedule' progressInterval='0'>
<Extension>
<WFProcess name='HMRC Activate Account' maxSteps='0'>
<Activity id='0' name='Print To Console'>
<Action id='0' name='Prove the process is bing called by printing to the console'>
<expression>
<block trace='true'>
<s>*************</s>
</block>
</expression>
</Action>
<Transition to='end'/>
<WorkflowEditor x='111' y='68'/>
</Activity>
<Activity id='1' name='end'>
<WorkflowEditor x='222' y='74'/>
</Activity>
</WFProcess>
</Extension>
<MemberObjectGroups>
<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
</MemberObjectGroups>
<Properties>
<Property name='editorOriginalName' value='HMRC Activate Account'/>
</Properties>
</TaskDefinition>

Similar Messages

  • Help on how to call a new form

    Anyone there that can help me how to call a new form...
    Actually I have 3 forms.... the Parent, and 2 child...
    child a
    child b
    I used JFrame to the Parent...
    I used JDialog to the child....
    I want to know how to call child a by the child b.....
    this is my code in calling them....
    when i'm in the form_b, i used this code to show form_a....
    form_a a = new form_a();
    a.setVisible(true);
    when i'm in the form_a, i used this code to show form_b....
    form_b b = new form_b();
    b.setVisible(true);
    but the problem is when i call either of the two, there's always a new form for form_a and also for form_b....
    I want to call the form without opening a new form... that form also will be visible... is there anyways i can do this.... any help will do.... tenks....

    One way would be to have the parent maintain instances of A & B and have public methods for accessing A & B. Something like this. You would have to pass a reference to the parent class to A & B so that they can call the access methods.
    public class form_a extends JDialog{
       public form_a (Parent parent){
    public class Parent extends JFrame{
       form_a a;
       form_b b;
       public Parent(){
          a = new form_a (this);
          b = new form_b (this);
       public form_a getFormA(){
            return form_a;
       public form_b getFormB(){
           return form_b;
    }

  • Help how to Call a New Form

    Anyone there that can help me how to call a new form...
    Actually I have 3 forms.... the Parent, and 2 child...
    child a
    child b
    I extend JFrame to the Parent...
    I extend JDialog to the child....
    I want to know how to call child a by the child b.....
    this is my code in calling them....
    when i'm in the form_b, i used this code to show form_a....
    form_a a = new form_a();
    a.setVisible(true);
    when i'm in the form_a, i used this code to show form_b....
    form_b b = new form_b();
    b.setVisible(true);
    but the problem is when i call either of the two, there's always a new form for form_a and also for form_b....
    I want to call the form without opening a new form... that form also will be visible... is there anyways i can do this.... any help will do.... tenks....

    One way would be to have the parent maintain instances of A & B and have public methods for accessing A & B. Something like this. You would have to pass a reference to the parent class to A & B so that they can call the access methods.
    public class form_a extends JDialog{
       public form_a (Parent parent){
    public class Parent extends JFrame{
       form_a a;
       form_b b;
       public Parent(){
          a = new form_a (this);
          b = new form_b (this);
       public form_a getFormA(){
            return form_a;
       public form_b getFormB(){
           return form_b;
    }

  • New Window for Form called from a form based on a procedure

    Hi
    I have a form that is based on a procedure that asks for an employee number. The number is then passed to the procedure. The procedure then calls the next form passing in the employee number.
    This works however I would like the form called from the procedure to open in a new window while still being able to pass in the employee number as a parameter.
    Is there a way to do this? I have tried looking at wwa_app_module.new_instance & wwv_media.show_newwindow but I these only take the moduleid, I can't see how to pass in the employee number at the same time.
    Any help would be appreciated.
    Thanks
    Belinda

    Hi,
    You can pass parameters like this
    wwv_redirect.url('SJAYARAM_9042F.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1060253649&p_arg_names=deptno&p_arg_values=10&p_arg_names=_deptno_cond&p_arg_values=%3d');
    In this example the parameter deptno is passed with a value 10 and conditional operator '='
    Hope that helps.
    Thanks,
    Sharmila

  • How can i change the code in when new form instance trigger using JDAPI

    Hi all,
    Can anyone tell me how can i use JDAPI to modify the when-new-form-instance trigger in all my forms,coz we have around 500 FMB's ,if this is possible by using jdapi it will be better for us..
    Thanks in advance..
    Najeeb

    Hi Najeeb,
    The code I've given you should cover the basic steps - you will need to have a basic knowledge of Java if you want to use the JDAPI, there's no way around that unless you go and buy one of the off-the-shelf products for this kind of thing (I think there's one called orcltoolbox..?)
    I've written an application that does all kinds of things to Forms specific to our needs, so it's a bit tricky to just pull out the code you need, but again, the basics will be:
    String formName="C:\some_dir\some_form.fmb";
    FormModule mForm=FormModule.open(formName);
    Trigger myWNFITrig=Trigger.find(mForm,"WHEN-NEW-FORM-INSTANCE");
    String myText=myWNFITrig.getTriggerText();
    And there you have your trigger text, to do with what you please. You could put this code in the main() method of one class if you want to keep things really simple - but see how you get on, if you have any more specific questions, do come back.
    Eric - that's a very good point about using Regular Expressions. I haven't used them in my JDAPI app because I wanted to keep all my .fmbs 6i-compatible for the short-term, and a posting I saw somewhere recommended sticking to Java 1.3. Which rules out the regex facility, which only appeared in Java 1.4. Now, though, I think I needn't have worried - it surely shouldn't matter which version of Java I use to make the changes to the .fmbs. My stupid!
    James

  • Calling Adobe form in a Workflow Step for approval

    Hello,
       There are some ISR forms and workflows in MSS which use Workflow tasks configured as JavaWebDynpro to call Adobe form from the Workflow Step.
    Is it possible to achieve the same using ABAP Web Dynpro and creating a new task and configuring to use it as an ABAP Web Dynpro (which can in turn call the Adobe form from the WD)?
    Thanks.

    Hi Anjali,
    1)You can develop an<b> RFC</b> that collects required basic data from R/3 and display them in <i>ABAP WD - Adobe Form</i>. The End user can change/fill the remaining contents of the Adobe Form and submits it for approval. The <b>RFC</b> again handles the triggering part of the <b>Workflow</b> and passes the form data to the workflow containers.And for approvals, you can use the <i><b>SWFVISU</b></i> to call a <b>ABAP WD</b> application from Workflow. And in turn the control again goes back to RFC and so...
    2)I dont have much idea in ECC 60 if there is a similar ABAP WD application like Standard Java WD <b>IsrFormApprove</b>.
    3)No idea.
    Regards,
    <i><b>Raja Sekhar</b></i>

  • Can we call a workflow form a JSP and/or form a Java Class?

    Is it possible to call a workflow form a JSP and/or form a Java Class?

    Below is some xpress code I wrote once, used to dynamically lauch workflows from within a workflow. Since it basically uses java classes, you reuse these in your java program or jsp:
    - create a new generic object
    - call the setId, put, ... methods on it
    - set the input variables for the workflow by putting them into the generic object
    - call the checkinView method on a LighthouseContext object which launches your workflow.
    If all you need is starting a workflow from a jsp, you might also want to take a look at the tasks/taskLaunch.jsp jsp. This is an out of the box jsp which allows launching of tasks. If I remember correctly you have to give an url parameter which specificies the name of task you want to start: tasks/taskLaunch.jsp?id=<workflow-name>
    - Robin
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE TaskDefinition PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <TaskDefinition name="MVG_TD_LaunchWorkflow" taskType="Workflow" executor="com.waveset.workflow.WorkflowExecutor" suspendable="true" syncControlAllowed="true" execMode="sync" execLimit="0" resultLimit="0" resultOption="delete" visibility="runschedule" progressInterval="0">
         <Extension>
              <WFProcess name="MVG_TD_LaunchWorkflow">
                   <Variable name="workflowName" input="true"/>
                   <Variable name="taskInstanceName" input="true"/>
                   <Variable name="inputs" input="true"/>
                   <Variable name="processView"/>
                   <Activity name="start">
                        <Transition to="createProcessView"/>
                   </Activity>
                   <Activity name="createProcessView">
                        <Action>
                             <block trace="true">
                                  <set name="processView">
                                       <new class="com.waveset.object.GenericObject"/>
                                  </set>
                                  <invoke name="setId">
                                       <ref>processView</ref>
                                       <s>ProcessViewer</s>
                                  </invoke>
                                  <invoke name="put">
                                       <ref>processView</ref>
                                       <s>task.process</s>
                                       <ref>workflowName</ref>
                                  </invoke>
                                  <invoke name="put">
                                       <ref>processView</ref>
                                       <s>task.taskName</s>
                                       <ref>taskInstanceName</ref>
                                  </invoke>
                                  <if>
                                       <notnull>
                                            <ref>inputs</ref>
                                       </notnull>
                                       <then>
                                            <invoke name="assimilate">
                                                 <ref>processView</ref>
                                                 <ref>inputs</ref>
                                            </invoke>
                                       </then>
                                  </if>          
                             </block>
                        </Action>
                        <Transition to="checkInProcessView"/>
                   </Activity>
                   <Activity name="checkInProcessView">
                        <Action>
                             <block trace="true">
                             <invoke name="checkinView">
                                  <invoke name="getLighthouseContext">
                                       <ref>WF_CONTEXT</ref>
                                  </invoke>
                                  <ref>processView</ref>
                                  <new class="java.util.HashMap"/>
                             </invoke>
                             </block>
                        </Action>
                        <Transition to="end"/>
                   </Activity>
                   <Activity name="end"/>
              </WFProcess>
         </Extension>
         <MemberObjectGroups>
              <ObjectRef type="ObjectGroup" id="#ID#Top" name="Top"/>
         </MemberObjectGroups>
    </TaskDefinition>

  • Calling a Workflow form changeAnswersResults.jsp

    Can we call a workflow form changeAnswersResults.jsp?
    In changeAnswers.jsp, when we click on Save or Cancel, accordingly I want to call two different workflows (may one)
    Can anyone give me example?
    Thanks

    hi,
    u can use following code
         LighthouseContext _lhSess = null;
    _lhSess = (LighthouseContext) new com.waveset.session.InternalSession();
    TaskDefinition taskDef = (TaskDefinition) lhSess.getObject(Type.TASKDEFINITION, "workflow name");
    TaskTemplate template = new TaskTemplate(taskDef);
    template.setExecMode(TaskDefinition.ExecMode.SYNC);
    template.setOwner("Configurator");
    TaskInstance task = _lhSess.runTask(template);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Call New Form

    Dear All,
    In my application while opening some of the forms i get a message 'Do You Want To Call the New Form?'. I am using forms 6i. How to stop this message?
    Thanks in advance

    below is the code to open form i have used. What changes is the form name.
    DECLARE
    A VARCHAR2(50);
    BEGIN
    A:= GET_APPLICATION_PROPERTY(CURRENT_FORM_NAME);
    IF A IN ('WELCOME','welcome') THEN
    CALL_FORM('C:\appl_exemption\tax_licence.fmx');
    ELSE
    clear_form(no_validate);
    NEW_FORM('C:\appl_exemption\tax_Licence.fmx',no_rollback);
    END IF;
    END;

  • How to get the values from form calls in user exit?

    Hi all,
    I am not getting a specific value readily in an user exit.
    ?Can any one tell me how to find what are the fields,tables available in various form calls(visible while debugging) in an user exit.
    For example sapxkl is one ofthe callls...(sapxkl)<table>[] will hold some data.how to find what r the values available for <table>.
    Thanks.
    Edited by: sanjay_ask on Apr 16, 2010 10:43 PM

    HI ,
    Use this line of code
      field-symbols: <l_fs> type any.
      data: l_value type char20.
    Get Plant
      l_value =  '(SAPLCEI0)GV_WERKS'. " Here give the program name and variable name
      assign (l_value) to <l_fs>.
      v_werks = <l_fs>.         " Instead of V_werks use you internal table
    Thanks
    Subhankar

  • How can we open a new folder in the email account (ex: need to save certain emails into a new fodder called "work". can anyone help

    How can we open a new folder in the email account (ex: need to save certain emails into a new fodder called "work".
    Anyone can help?

    Right click on any folder in mail and select Create new mailbox.

  • 2010 Review Approval Workflow Error - Outlook cannot open a new form

    Hi,
    I set up an Approval - SharePoint workflow on a document library list in a webpart.  When the approver got the email and tried to approve from outlook, she received the following error.  She has approved documets in the past for the same page. 
    Can anyome please help me troubleshoot this?  So much appreciated!
    Word Error:
    Could not open.  http://<site ulr> _layouts/formsResource.aspx?templateFile=http://<site url_catalogs/wfpub/Approval - SharePoint 2010/Review Approval_Task_1033.xsn
    Outlook Error:
    Outlook cannot open a new form. To open the file, access to the folliwng form template is required
    http://<site ulr> _layouts/formsResource.aspx?templateFile=http://<site url_catalogs/wfpub/Approval - SharePoint 201o/Review Approval_Task_1033.xsn

    can she open the approval form in web browser instead of Outlook?
    According to the error message, it seems that the user does not have permission for the file http://<site url/_catalogs/wfpub/Approval - SharePoint 201o/Review Approval_Task_1033.xsn.
    can she open see this file in SharePoint designer 2010? that is, open the site with SharePoint designer and navigate to All Files->_catalogs->wfpub->Approval - SharePoint 201o. If she can not see the file there, ask the workflow creator to publish
    the workflow again. I had experienced strange issue in SharePoint designer 2007 and solved by check out all the workflow files and check in again
    http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/b533cfa5-e858-4ff9-bd0d-96d19946b789.

  • How to increase count in a text increases on each new form submitted?

    Hi All,
    I have a field in infopath form as 'RefNo', whenever new form submitted, it count should increase. How to achieve this scenario?
    Thanks in advance!

    I'm not sure if you can do this to display on form load, but you could do this on submit and edit form. 
    Refer to the following posts,
    http://sharepointryan.com/2011/05/25/add-an-auto-numbering-field-to-an-infopath-form/
    http://sharepointfromthetop.wordpress.com/2011/08/31/auto-numbering-infopath-forms/
    --Cheers

  • How to add an image for the new form?

    I created a new form,and I want to add an [image] to the toolbar in the new form.How to add [image] for a form?
    Like:
    [image] File Edit Tool Help
    My Form
    Thanks in advance!

    Thank you!
    Maybe the message I sent yesterday have some mistakes.
    Form version 12.0.5.1
    I want it this way:
    How to add [image]?
    [image] Manager Maintenance
    Browser Open Save Help
    -- My Form --
    -----------------------------------------------------------------------------

  • WebUtil doesn't work when called from WHEN-NEW-FORM-INSTANCE trigger

    I need WEBUTIL_CLIENTINFO functions to know some information from the client, like IP, JavaVersion, Hostname, OS user, etc. This functions I call through WHEN-NEW-FORM-INSTANCE TRIGGER and this doesn't nor work. I obtain the next message and error:
    oracle/forms/webutil/clientinfo/GetClientInfo.class not found. WEBUTIL_CLIENTINFO.GET_IP_ADDRESS.
    But when I call this WebUtil functions through WHEN-WINDOW-ACTIVATED trigger or through a button it works. Why?. I need call WebUtils in the WHEN-NEW-FORM-INSTANCE trigger!
    Any help will be of great value.

    Basically make a timer...
    Do you have the wu_test_106.fmb file that comes with the webutil install?
    If you look in the wnfi trigger you will see this...
    declare
         fake_timer TIMER;
    begin
         -- Purpose of the fake timer is the we cannot call webutil in this trigger since the
         -- beans have not yet been instantiated.  If we put the code in a when-timer-expired-trigger
         -- it means that this timer will not start running until Forms has focus (and so the webutil
         -- beans will be instantiated and so call canbe made.
         fake_timer:= CREATE_TIMER('webutil',100,NO_REPEAT);
         --create_blob_table;
         null;
    end;And in the form level when-timer-expired you will see this...
         :global.user_home := webutil_clientinfo.get_system_property('user.home');
         :OLE.FILENAME := :global.user_home||'\temp.doc';
         SET_ITEM_PROPERTY('builtins.text_io_item',PROMPT_TEXT,'Write to '||:global.user_home||'\helloworld.txt');
         SET_ITEM_PROPERTY('files.userdothome',PROMPT_TEXT,:global.user_home);

Maybe you are looking for

  • Issue in updating large number of rows which is taking a long time

    Hi all, Am new to oracle forums. First I will explain my problems as below: 1) I have a table of 350 columns for which i have two indexes. One is for primary key's id and the other is the composite id (combination of two functional ids) 2) Through my

  • How to install OS X - Queries

    I have an external HD, and an iMac, I wan't to burn 10.6 (then 10.7) to my external HD that has 10.5 on it at the moment (it's my old internal HD) Now, I don't have the disk, I have a DMG and no way to burn a dual layer DVD (or even one to burn to) s

  • Need to create a songbook file.

    I normally use a songbook to glance at while playing guitar and would like to put all of my songs on my iPad. The documents I use were all created in Word. I would like to be able to arrange them in a particular order and be able to just tap the iPad

  • Status group of bill of exchange

    Hi, I am posting  with a Special G/L Indicator which is a bill of exchange.The problem is that I need to enter the field BUPLA and it does not appear. I see that many fields are from table BSED and the BUPLA exits in the table, but I don not know how

  • Perform Recover Edges automatically

    Sorry if this has been asked before, but my search didn't turn up usable results. At the moment, I convert my RAWs to DNG upon import into LR. Then I drag the DNGs upon a link to the Recover Edges - Application. They gain about 0.2 Megapixels with no