Q: Start Workflow...

Hi all,
The "Start Workflow" task allows an alternate organisation to be
specified using an expression, but when I do this, I cannot select the
workflow to start - nothing will appear in the list.
Is there a trick to making this work? Should the template name be
part of the expression?
I don't quite understand the functionality behind this option - the
templates, versions and activation properties seem to be globally
scoped, so that all organisations share the exact same template
definitions. What is the intended purpose for specifying an alternate
organisation?
Any light shed on these issues would be greatly appreciated.
Regards,
Ben Hatton.

Yes, I would imagine that the point of using an expression is that the
selection organization would be determined according to some condition
defined in the workflow which must be evaluated at run time.
But specifying orgs does have some ramifications, limited as they may be.
These are:
1) controlling access to starting workflows manually via the Worklist. That
is, if a template is associated with only a particular org, a user who is
not a member of that org won't be able to start the workflow from the
Worklist. For called workflows, this is irrelevant anyway, however.
2) controlling which users or roles may be assigned tasks within the
workflow. Again, if a user or role isn't defined for the org associated with
the template, that user/role can't execute tasks in the Worklist. (But they
probably can be through task reassignment. I haven't tested this to see what
would actually happen.) This point does affect called workflows.
On the other hand, the fact that you can use an expression to define the
actual organization, rather than the condition to apply to a limited set of
allowable choices (defined by the orgs associated with the template), seems
to subvert the whole intention anyway, as you can really select any org you
want.
There will obviously have to be some redesign of the whole org-template
thing in future releases.
Kara
While Templates can be associated to specific organisations by the
designer, you can't have two orgs that use different definitions of
the same template (name). If different orgs could have their own
implementation of a named flow, like "approveOrder", then each
organisation could have a different private process for that function
(one uses manual task, another uses an automatic caluculation). As it
is, there is no point in being able to specify a different org, 'cause
you'll get the exact same template definition.
Is the intention that you can test for the name of the organisation in
the template definition and branch to different functionality?
Probably not - if we have the ability to evaluate the right
organisation when defining the "Start Workflow" task, then we would
likely be able to use that same logic at the point that functionality
splits in the subflow.
Regards,
Ben.
On Wed, 3 Oct 2001 16:12:17 -0400, "Kara Moscoe" <[email protected]>
wrote:
I agree with you, and do not understand why the Studio does not provide a
combo box for this functionality, in the same way triggered or timed
start
nodes do. And given that there is no workflow function to return an
organization, I really don't understand what kind of expression couldeven
be sensibly used here. The only thing I could imagine this being used foris
a variable that has contained previously stored organization from an
incoming XML message received by another node in the calling workflow,from
some other workflow or other source. Tony, maybe you could shed somelight
on this.
On the other hand, you are incorrect when you say that all TDs are sharedby
all organizations. At least, this is not the case at design time; orgs tobe
associated with TDs are selected by the designer. So the intention hereis
to be able to specify the org in which the subworkflow is operable, ifit's
not the current one. What should happen is that here, as in triggered and
timed start nodes, a list of orgs associated with the template shouldappear
in the combo box.
What actually happens is another matter, and there is a CR filed on thefact
that the server does not actually control organizations in whichworkflows
can be started, and you could theoretically specify anything you want,
including a non-existing org. The template/organization paradigm is quite
broken, and it appears that a proper solution to the problem won't happenin
the Berlin time frame.
Hope this helps,
Kara
"Benjamin Hatton" <[email protected]> wrote in message
news:[email protected]...
Hi Tony,
Thanks for your help on this and the other queries I had.
I am in the studio, adding a "Start Workflow" action to a task. If
the subworkflow is in the current organisation, there is no issue. If
it is another organisation, then it does not appear in the list of
flows to start.
Given that an expression evaluated at run-time can be used to
determine the organisation, how can the studio resolve the
organisation, and hence resolve the list of flows that can be called?
Given that workflow templates and activation properties are shared
across organisations, what is the point of have a dynamically
evaluated expression to choose the organisation?
Best regards,
Ben.
On Tue, 2 Oct 2001 22:17:38 -0300, "tony lodge" <[email protected]>
wrote:
Ben can you be more specific. Are you saying that when you use the
worklist
client you can not see the template to start. If this is the case youhave
to ensure that the start node in the workflow has a start note that is
triggered manually. This is done by a choice section on the start node
(timed,manual,event,called)
Tony
"Benjamin Hatton" <[email protected]> wrote in message
news:[email protected]...
Hi all,
The "Start Workflow" task allows an alternate organisation to be
specified using an expression, but when I do this, I cannot select
the
workflow to start - nothing will appear in the list.
Is there a trick to making this work? Should the template name be
part of the expression?
I don't quite understand the functionality behind this option - the
templates, versions and activation properties seem to be globally
scoped, so that all organisations share the exact same template
definitions. What is the intended purpose for specifying analternate
organisation?
Any light shed on these issues would be greatly appreciated.
Regards,
Ben Hatton.

Similar Messages

  • Error in starting workflow queue listener

    I have registered jobs with OEM using Warehouse builder workflow deployment
    wizard. Following jobs has been registerd with OEM :
    1) ACRM_IWF_ACRM_PWF
    2)ACRM_IWF_OWB_STD_BEGIN
    3) ACRM_IWF_OWB_STD_END
    4) ACRM_IWF_OWB_STD_ERROR
    Now i submit "ACRM_IWF_ACRM_PWF" from the OEM . I shows me status of the JOB as
    "Failed" and gives the following error message:
    Error in starting workflow listener: ** Initializing queue listener
    ** Initialized queue listener
    ** Recovering item type ACRM_IWF
    ** In recovery mode
    ** Recovery complete
    ** Processing all item types
    ** Waiting to dequeue message in listener
    ** Processing job 0x4143524D5F4957465F4F57425F5354445F424547494E
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String
    index out of range: -1
    at java.lang.String.substring(String.java:1085)
    at
    oracle.wh.runtime.workflowrt.QueueListener.parseParameters(QueueListener.java:10
    03)
    at oracle.wh.runtime.workflowrt.QueueListener.startJob(QueueListener.java:798)
    at
    oracle.wh.runtime.workflowrt.QueueListener.processJobs(QueueListener.java:746)
    at
    oracle.wh.runtime.workflowrt.QueueListener.initAndRun(QueueListener.java:299)
    at oracle.wh.runtime.workflowrt.QueueListener.main(QueueListener.java:197)
    1

    This is not actually a Workflow component, this is part of the Oracle Warehouse Builder product, although the name is similar to the Workflow Agent Listener in v2.6.
    I have registered jobs with OEM using Warehouse builder workflow deployment
    wizard. Following jobs has been registerd with OEM :
    1) ACRM_IWF_ACRM_PWF
    2)ACRM_IWF_OWB_STD_BEGIN
    3) ACRM_IWF_OWB_STD_END
    4) ACRM_IWF_OWB_STD_ERROR
    Now i submit "ACRM_IWF_ACRM_PWF" from the OEM . I shows me status of the JOB as
    "Failed" and gives the following error message:
    Error in starting workflow listener: ** Initializing queue listener
    ** Initialized queue listener
    ** Recovering item type ACRM_IWF
    ** In recovery mode
    ** Recovery complete
    ** Processing all item types
    ** Waiting to dequeue message in listener
    ** Processing job 0x4143524D5F4957465F4F57425F5354445F424547494E
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String
    index out of range: -1
    at java.lang.String.substring(String.java:1085)
    at
    oracle.wh.runtime.workflowrt.QueueListener.parseParameters(QueueListener.java:10
    03)
    at oracle.wh.runtime.workflowrt.QueueListener.startJob(QueueListener.java:798)
    at
    oracle.wh.runtime.workflowrt.QueueListener.processJobs(QueueListener.java:746)
    at
    oracle.wh.runtime.workflowrt.QueueListener.initAndRun(QueueListener.java:299)
    at oracle.wh.runtime.workflowrt.QueueListener.main(QueueListener.java:197)
    1

  • Generic object services (GOS) - Start workflow box is allways empty

    Dear colleagues,
    i have installed a brand new IDES ERP 6.0 successfully but when entering a number of standard transactions like mm02, va03, fb03 etc and trying to execute the GOS toolbox, I can never start any workflow. I click on the 'start workflow' button of the GOS-toolboy but the selection box is allways empty. Did I miss anything? Since there are so many BOR objects that apply to the objects of the standard transactions, there should be at least something to start. For example BOR BUS1001 (material master): When in MM02, why does the GOS-toolbox for workflows not show the related workflows that use BUS1001?
    Thank you very much for your answers
    Best regards
    Daniel

    Udo,
    You should start a new discussion - you'll get more responses.
    Anyhoo, to make a workflow appear in the GOS 'start workflow' list, just follow these simple rules:
    - confirm which BOR object is involved in your transaction (eg BUS1001006 for MM03)
    - make sure that the BOR object is a mandatory input of your workflow
    - make sure that there are no other mandatory inputs
    - make sure that the workflow (WS*) is set to 'General Task' (nb this is client dependent)
    Once all these things are done, refresh the buffer (SWU_OBUF) and it should work.
    cheers
    Paul

  • How to create business operation for starting workflows

    How to create business operation for starting workflows from worklist?
    When I call methods that implements business operation from java class everything
    works fine(wlpi-ejb.jar is required), but when I call business operation from
    Studio I can't use classes from wlpi-ejb.jar.

    Business operation is called by WLIS. So, I include wlpi-ejb.jar into WLIS classpath.
    Studio uses deployed EJB from wlpi-*.jar, I don't know why Studio doesn't see
    methods from deployed EJBs when WLIS classpath contains wlpi-ejb.jar.
    "Andrew Pitonyak" <[email protected]> wrote:
    >
    When studio starts, what is your classpath? If you use the included batch
    file to start it, then your class path may not include this :-)
    Andrew
    "Raul" <[email protected]> wrote in message
    news:[email protected]..
    How to create business operation for starting workflows from worklist?
    When I call methods that implements business operation from java classeverything
    works fine(wlpi-ejb.jar is required), but when I call business operationfrom
    Studio I can't use classes from wlpi-ejb.jar.

  • Starting Workflow from Generic Object Services

    Hi All.
    We are on ECC6. In transaction MM02 when I excute 'Start Workflow' from Generic Object Services, no workflows are found. Can anyone help me with the following issues;
    1. What is the underlying object in transaction MM02 (I believe it is BUS1001006)
    2. How can i ensure that the proper workflows in this transcation are started through some  
        customisation, enhencement or user-exit.
    Regards.

    I think you have to maintain the Workflow Template as General Task and then only it will appear in the GOS.
    Thanks
    Arghadip

  • Error while starting workflow from warning msg or error msg?

    Hello experts,
    I m tryin to start and workflow from error msg of ME21...whn we juss click enter without entering any value, it gives error as -" enter Purch org  ". whose msg class - ME and msg num - 083.
    thn from t-code SWUY,i creating and linked workflow for the msg.
    Now while testing,when m goin to t-code ME21, and goin to the long text of tht error msg.....the button to start workflow is not getttin enabled. tht is still disable.
    PLease tell r thr any other back ground settings to be done for this.
    Regards
    Nitin

    Hi,
    Your workflow landed up in Error and you want to Restart it right.
    Go to SWPR and check that workflow is there.
    If found, select it and Restart it.
    Regards,
    Surjith

  • Start workflow with f. module to trigger event and how to pass data to BOR?

    Hi,
    I have a custom BOR object, with Event "Created". I have also an attribute in this BOR, just simple field Plant.
    I have prepared a custom Workflow which is triggered when event Created of that custom BOR business object is raised.
    To raise an event and to start a workflow I run f. module SAP_WAPI_CREATE_EVENT.
    I have a problem to pass a Plant value to the Workflow container. In the PFTC_CHG for my Workflow I made the container
    of BOR object, and the data binding &_EVT_OBJECT& => &MATREQ&  (symbol of my BOR).
    Below both of EVTOBJECT and MATREQ I can see my field Plant.
    Then I run f. module SAP_WAPI_CREATE_EVENT with tables parameter input_container.
    I try to fill the data in many ways, but the started workflow does not have Plant filled.
    I try to use '_EVT_OBJECT.WERKS' in field name for input_container parameters.
    Business Object is passed to the Workflow container, but I do not get the fields
    as attributes. Do I have to use the parameters for the event Created ?
    Thank you in advance
    Wojtek

    Hello,
    I've never used GUID as a key but I suppose the principles are the same - the object instance is equivalent to "something", say a widget.
    This widget has attributes, e.g. the factory where it was created, the day it was created, its weight etc.
    If you make a widget BOR object and you specify attributes then you're telling SAP how, given the key, it can deduce the value of the attributes. Widget 1234's weight can be looked up in table XXX by doing this select.
    If you pass an object instance to a workflow then all you need to pass is the type of object and the key, the rest can be done by the workflow (or any other program). It can instantiate the object, and the attribute values are immediately available.
    If you can instantiate the object in SWO1 and the attributes get values, then it should work in the workflow as well.
    If not, please provide the code of the attribute or describe how it finds the attribute value.
    regards
    Rick Bakker
    hanabi technology

  • Starting workflow from messages

    Hi,
    I am trying out the possibility of starting workflows when a message is raised (Error/Warning). Once i create the message to workflow linkage i am able to start the workflow from the message long text.
    In this scenario is there a way to start the workflow automatically whenever that particular error message occurs?
    For example consider transaction PA30. Now if i try to enter a character value in place of personnel number i get an error message "Enter a Numeric Value". Now once i link the workflow to the message i am able to start the workflow manually. But can this be done automatically on the occurence of this message?
    Thanks,
    Prasath N

    Hi Karun,
    Thanks for your response. I have done this already and it is workfing fine when i start the workflow manually. I would like to know if there is an option to start the workflow <b>automatically (without pressing the workflow button)</b> when the message is raised.
    Thanks,
    Prasath N

  • Starting Workflow from VA02/03 Problem

    Hi,
    I have a problem, I want to start the workflow in VA03 Transaction, from menu "Service Object"==>" Workflow"==>"Start Workflow", but I can't see the workflow I want to start, the window is empty, this does not happen in our Quality an Production System, I can see it there in VA03 and in SWUI transaction, but in our Development System is not possible to see it, is there any configuration missing or some tasks thet need to be performed to see the workflow to start it manually from VA02 & VA03 Transactions??.
    Best Regards,
    Moisés.

    Hi Moisés,
    If you want a workflow to be triggered via GOS then it must be in the Start Workflow list in transaction SWUI and in order for it to be in the list it must not have an mandatory import elements and you must also be a possible agent (Set the agent assignment of the workflow template to General). Can you make sure the above 2 conditions are met and then test.
    Regards,
    Eddie

  • Start Workflow from transaction

    Hi ,
    Please let me know, where can i subscribe my custom workflow to trigger the workflow if we want to start the workflow manually from transaction FV60.
    Thanks in advance
    Sarath

    Hi
    I am not very much sure about how the txn FV60 look and feel would be , but the solution to your answer is already in your post, Assuming that there would not be any kind of button on the application tool bar of the standard txn FV60, you might have customized it, in sucha  way that you could include the button START WORKFLOW on application tool bar.
       As per your requirement you want to initiate the workflow only in case when the end user clicks on the START WORKFLOW button, In that case I think by using the Module pool programming you can actually resolve the requirement. By just simply validating the SY-UCOMM , if the fcode is equal to the FCODE of START WORKFLOW button, then by using either SAP_WAPI_CREATE_EVENT or SAP_WAPI_START_WORKFLOW. You can start manually.
    Instead of implementing some Badi's or User Exits..
    Regards
    Pavan

  • Start Workflow from particular Step and assign to particular group of members

    Hi
    We are working on workflow using CQ 5.5.
    Is it possible start workflow from particular Step and assign this workflow to particular group of members dynamically(Using Process Step).
    Workflow Name : Single Page Workflow
                        Start
                            |
                        Step 1
                            |
                        Step 2
                            |
                        Step 3
                            |
                        Step 4
                            |
                        Step 5
                            |
                        Step 6 (Process Step)
                            |
                         End
    In Step 6 , we will start workflow for list pages dynamically , for that we written code as
    public class PublishTranslation implements WorkflowProcess{
        public void execute(WorkItem item, WorkflowSession wfsession, MetaDataMap metadata)
                throws WorkflowException {
               WorkflowModel  model = wfsession.getModel(item.getWorkflow().getWorkflowModel().getId());
               WorkflowData wfdata= wfsession.newWorkflowData("JCR_PATH",pagePath[i]);
               wfsession.startWorkflow(model, wfdata);
    This code starting workflow from step 1.
    I need help on
    1. How can i start workflow from step 2 or 3 ?
    2. How can i assign this workflow to group members ?
    Thanks & Regards

    Hello Ravindra,
    Logically it shouldn't allow you to do that and same happening because start workflow call on model will always trigger the workflow from starting point (means the very first step after start component in workflow design)
    To achieve this you have other ways, i would suggest to try below if it works for you.
    1. Instead of creating a new workflow just branch it programmaticaly and route back to previous step
          List<Route> routes=wfsession.getBackRoutes(item);
                     Route route=routes.get(WHAT_EVER_STEP);
                     wfsession.complete(item, route);
    2. Create a new workflow model which starts from second step and using code get access of that workflow
         wfsession.getAllWorkflows();
    for delegation as mentioned by Yogesh, you can try wfsession.delegateWorkItem(WorkItem item, Authorizable participant)
    Thanks,
    Pawan

  • Start Workflow AFTER File Is Uploaded

    I want workflow to start AFTER i copy file through webdav (drag n drop).
    Now it starts workflow BEFORE file is uploaded.
    Workflow uses data from the file so the order is crucial.
    Is it possible?

    System.Threading.Thread.Sleep(3000);
    before everything saves the day.
    Works with workflows and event handlers (ItemAdded).

  • Start workflow in code - access denied

    Im trying to start list workflow (sp 2013)  from MVC app.
    the mvc app (win auth enabled) is running by a user that is site owner.
    i always get ASP.NET access denied
    var workflowServiceManager = new WorkflowServicesManager(web);
    var workflowSubscriptionService = workflowServiceManager.GetWorkflowSubscriptionService();
    SPList oList = web.Lists["Employee"];
    SPListItem item = oList.GetItemById(557);
    //access denied on this line
     var subscriptions = workflowSubscriptionService.EnumerateSubscriptionsByList(oList.ID);
    thanks

    Hi
    Earlier I was putting the button (link) in the wrong place now that its in the dataform webpart @ID works !
    This link now will jump to the workflows page, the problem is that I have two workflows so the user may start the wrong workflow. Then I tried to link to the initiation page instead but this is where the error occurs.
    This is the workflow page link (Copied from browser url)
    http://sp20104/HitsMissesApp/_layouts/Workflow.aspx?ID={@ID}&List=deff1c34-4aec-43ad-b1e8-00444d3ab674&Source=http%3A%2F%2Fsp20104%2FHitsMissesApp%2FLists%2FHitsandMisses%2FAllItems%2Easpx
    This is the initiation page link, has a few more parameters. (Copied from browser url and used static ID for test)
    http://sp20104/HitsMissesApp/_layouts/IniWrkflIP.aspx?List={deff1c34-4aec-43ad-b1e8-00444d3ab674}&ID=6&TemplateID={8f72c2a0-7ec7-44ac-9bb7-c0a527a6b91a}&Source=http%3A%2F%2Fsp20104%2FHitsMissesApp%2FLists%2FHitsandMisses%2FAllItems%2Easpx
    When I enter the intitation link in SPD, SPD error with 'Error HRESULT E_FAIL has been returned from a call to a COM component.' and then crashes.
    So I can only link to the workflows page not the inititaion page. Perhaps the IniWrkflIP.aspx can only be called from a select page or something?
    Code for insering asp link:
    <asp:LinkButton runat="server" id="LinkButton1" PostBackUrl="http://sp20104/HitsMissesApp/_layouts/Workflow.aspx?ID={@ID}&amp;List=deff1c34-4aec-43ad-b1e8-00444d3ab674&amp;Source=http%3A%2F%2Fsp20104%2FHitsMissesApp%2FLists%2FHitsandMisses%2FAllItems%2Easpx">Start Workflow Feedback</asp:LinkButton>
    Alternatively, the button/link could simply start the workflow as I dont require the initiation page. Dont know if this is any easier though.
    Any assistance welcome on this .
    Thanks

  • Workflow not showing in started workflows

    Hi all,
    I developed one workflow by using the user developed  business object.
    I am triggering this workflow from abap program by using the function module 'SAP_WAPI_CREATE_EVENT'.
    Workflow is getting triggered from every id as i checked it by SWEL.
    If i execute the program from my id it getting triggered and showing in outbox as started workflows, if i did it from other id
    it is not coming in his outbox of started workflows.
    I checked the authorisation roles and profiles of both ids , they are same.
    what might be the problem, can anbody help?

    Hi swami,
    the code i am using is
              CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
                EXPORTING
                  object_type             = 'ZTRNAPR'
                  object_key              =  object_key
                  event                   = 'CREATED'
                  commit_work             = 'X'
                EVENT_LANGUAGE          = SY-LANGU
                LANGUAGE                = SY-LANGU
                USER                    = SY-UNAME
                IFS_XML_CONTAINER       =
              IMPORTING
                return_code             = return_code
                 event_id                = event_id
               TABLES
                 input_container         =  input_container[]
                 message_lines           = message_lines[]
                 message_struct          = message_struct[]
    The return code i am getting is 0.

  • Automatic start workflow for ALL records

    Hi Experts,
    Does anyone know a way to start workflow automatically for ALL records without human interference?
    I want to start workflows every day. For instance to recalculate, re-validate, re-assign or syndicate ALL records of a table.
    Kind regards,
    Job Jansen

    Hello Job Jansen
    I suppose recalculate and validate all recodrs once a day don't make sense when that records is the same
    and records wasn't changing
    However, you can use Autolaunch = Threshold with Max Time = 24 hour(for example)
    workflow will fire when Max Time say greater then time last launched job.
    And few another ways:
    1) you can use task sheduler for launch import manager and turn autolaunch workflow when it do import
    2) turn automatic import process(MDIS) once a day and use workflow for add records
    3) developed Java application which used MDM JAVA API for start workflow
    Regards
    Kanstantsin

  • Start workflow with BAPI / RFC

    HI!
    I want to start a workflow in Business workflow by RFC. Are there any BAPI for this that i can use. ?

    Hey Dominik,
    Use following FM to start Workflow
      <b>SPH_SWW_WI_START_SIMPLE - RFC
      SWW_WI_START_SIMPLE - Normal FM</b>
    You can pass data by using parameter WI_CONTAINER in TABLES tab.
    Reward points if the answer is helpful.
    Thankx,
    Mukul

Maybe you are looking for

  • ORA-01017 (invalid username/password) using globally authenticated account

    Kris and team, Having a hard time believing no one else has encountered this already. But searching on 1017 and "globally" and "identified" in the forum yields nothing useful. New corporate policy has all our DBAs, developers and QA logging into glob

  • Open a second BPF from a the current BPF

    Hi, is there a way to open a second BPF from the one I am currently working in? My idea is to create a first BPF (e.g. called "Overview") that lists task groups such as Consolidation, HR Planning, Revenue Planning etc, where each task then links to a

  • Debuging in CE 7.1

    Hi, I've switched debuging on , on the remote CE 7.1 server and deployed a simple web application (servlet that calls a web service) on it. when I try to debug the application, I choose SAP Launch and follow this procedure but no debugging session st

  • Problem on installing Windows XP

    I am new to mac, and have been using PC all my life. I know an ok amount on the mac but not too well. I followed the instructions in Boot Camp Assistant and created a partition, then inserted my Windows XP Home Edition SP1 cd and ran the installation

  • Gray screen of death has prolifered upon upgrading to Leopard

    I upgraded to Leopard a few days ago, and since then, I've gotten the "grey screen of death" (not sure what the technical term is), about 8-10 times. Before posting this I got it 3 times within a half hour. The last several times, it was while using