Workflow 4.5 with custom activities

I created a number of custom activities in a rehosted designer.  What I have seen is that when I add another activity my activity  constructor is called again.  In my activity constructor I set a view model to associate a dialog and this causes
the view model to not match the model item associated with the Activities.
The revelant code is:
public InstructionDesigner()
InitializeComponent();
infoDialogViewModel = new InfoDialogViewModel();
Where the designer constructor creates the view model but being called twice when I add a new activity.  If I add another activity beyond the second activity I am only constructing one.  It looks like when I add the second activity it is reconstruction
the original activity and putting a sequence activity around it.
How should I handle this or is there a work around so I can attach a viewmodel to a specific instance of the activity.

Hi,
Create A New Activity Designer Project:
http://stackoverflow.com/questions/16970113/workflow-foundation-native-activity-child-activities-on-designer

Similar Messages

  • Approval WorkFlow with custom steps

    Hi guys,
    I need to create, using SPD, a simple workflows with this Outcome step
    Accepted e Approved so, for example If I have these users in My WF
    UserA, UserB
    I want that UserA change the WF step to Accepted and then UserB close the WF with Approved.... is it possible?
    thanks!
    Sergio

    Hi Brampurnot,
    I have created supplier via create Supplier via workflow from a custom supplier type which has workflow attached to a custom phase. After creating the Supplier and when it was in Created phase I found supplier in My supplier workflow Activities
    under For manual Phase change. Then when I changed phase to the Approval attached phase, I found the supplier in the channel for the approver attached at that phase.Then after when the Approver approved the supplier , the supplier was visible in the "search supplier" to me!.. Hope it helps regarding the Supplier workflow..
    And coming to registering through Form I thought you might be mentioning Supplier registration at Buy Side! .
    Supplier Self registration seems not to be enabled yet on my application , so I dint have idea that it exists. Would let you know if I can try that scenario.
    Regards,
    Uday

  • Sharepoint 2010, InfoPath 2010 with Custom Workflow. Error Message: InfoPath cannot submit the form. An error occured while form was submitted...

    I have created an InfoPath form that submits to a Sharepoint library with custom workflow attached. The workflow is initiated when the user submits the form. An email is sent to the supervisor who clicks the "Encoded Absolute URL" and approved
    the form via the emailed form. Then, based on certain criteria the form is either emailed to the VP or the workflow is complete. The VP is sent an email and clicks the "Encoded Absolute URL" and sumbits the form via the emailed form. This is
    how I would like it to work. The reality is, the form submits and is emailed to the supervisor and the supervisor is able to approve but when the form is sumbitted I get an error. The error is "InfoPath cannot submit the form. An error occured while
    this form was being submitted. The form cannot be submitted to the following location: <URL> The file <URL> is checked out for editing by <me> The operation completed successfully." The operation did not complete successfully and it
    is not checked out. I have read in previous posts that the file is locked. Since I am in the testing faze of the project there is no one else using the form. I have waited 24 hours and the lock has not been released. Please help!!! My deadline is growing short.

    I ran into your post while having a similar issue.  I don't have a 'full' fix for you, but I noticed at least in our case if you made sure you opened the Infopath form through the browser instead of the client Infopath program (use the drop-down menu
    and open in browser) the error doesn't occur.  Hope that helps some....

  • How to create a workflow dealing with customizing program(Add-on program)

    Dear ALL,
    I am new to workflow and I was assigned to create a workflow related to an customizing program(Dynpro screen).
    I know we can refer to some std. template for workflow developing.
    However, I don't know how to create a brand new workflow to deal with the add-on program and table.
    My major difficulty is how to create a new object:
    --How to create the new event to track the operation of add-on program, for example, push 'submit' button.
    --How to create method to update the add-on table.
    I do hope someone could give me some guidance.
    Thank,
    Gary

    This is a Function Module that triggers an event ob Business Object tht you will create by making a subtype of Business Object. Use Transaction Code SWO1 to do so.
    FUNCTION zwf_process_trip.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_EMP_NUMBER) TYPE  PERNR_D
    *"     VALUE(I_EMP_TRIP) TYPE  REINR
      INCLUDE <cntn01> .
      DATA:i_emp_details TYPE STANDARD TABLE OF p0001,  "Employee Details
           wa_request    TYPE p0001,                    "Workarea for Employee details
           v_country_grp TYPE molga,                    "Country SubGrouping
           v_object_key  TYPE sweinstcou-objkey.        "Key for the buisness object ZWOBUSTRIP
      CONSTANTS: c_bo_trip     TYPE swo_objtyp VALUE 'ZWOBUSTRIP',
                 c_event_trip  TYPE swo_event  VALUE 'TripCreate',
                 c_infy_type_1 TYPE infty      VALUE '0001'.
    Event Container declaration
      swc_container i_event_cont.
      swc_create_container i_event_cont.
    Reading the INFO TYPE 0001 to obtain the
    Employee details
      CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
          pernr           = i_emp_number
          infty           = c_infy_type_1
          begda           = sy-datum
          endda           = sy-datum
        TABLES
          infty_tab       = i_emp_details
        EXCEPTIONS
          infty_not_found = 1
          OTHERS          = 2.
    SY-SUBRC check is not required as the error
    handelling will be done by WorkFlow rule
    resolution.
      CLEAR wa_request.
      READ TABLE i_emp_details INTO wa_request INDEX 1.
      IF sy-subrc = 0.
      Retrieving the Country SubGrouping for the employee
        SELECT SINGLE molga
          FROM t001p
          INTO v_country_grp
         WHERE werks = wa_request-werks
           AND btrtl = wa_request-persk.
      ENDIF.
    Sending the relevant data to event container
      swc_set_element i_event_cont 'EmpId'     i_emp_number.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'PersonnelArea'    wa_request-werks.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'CountryGrouping' v_country_grp.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'EmpSubGrp'       wa_request-persk.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'EmpTripId'       i_emp_trip.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
    Raising the event to trigger the workflow
      v_object_key = i_emp_number.
      CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype           = c_bo_trip
          objkey            = v_object_key
          event             = c_event_trip
        TABLES
          event_container   = i_event_cont
        EXCEPTIONS
          objtype_not_found = 1
          OTHERS            = 2.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      COMMIT WORK.
    ENDFUNCTION.
    SWEL Transaction Code is used to track event linkage.
    SWUS is used to test Workflow manually with single test.
    <b>Please reward points if useful</b>
    Thanks
    Arghadip

  • Anyone worked with customizing the requisition account generator workflow?

    Has anyone worked with customizing the requisition account generator workflow?
    please let me know
    I need help asap.
    thanks

    Hi Malla,
    Solution here:
    http://garethroberts.blogspot.com/2007/08/gl-account-code-combinations-on-fly-key.html
    Regards,
    Gareth

  • Windows Service Hosted workflow, Stop it with ServiceOperation call?

    I am working on a POC for Scheduling Workflows. I have a workflow hosted with Workflow Services Host. Using a While activity I loop while KeepRunning = true. Using Pick-->PickBranch I have two ServiceOperations running in Receive activities in each
    Branch.  There is a StartWorkflow ServiceOperation in one branch and a StopWorkflow ServiceOperation in another branch. The StartWorkflow operation basically just runs another Workflow called RunWorkflow with a calculated Delay activity between each
    completion. It will loop indefinitely on that RunWorkflow activity until the KeepRunning is set to false. The StopWorkflow ServiceOperation is what changes the KeepRunning flag to false. My problem is that the StartWorkflow operation never completes so that
    the Messaging directed to StopWorkflow can take place. I have used a CorrelationHandle to group the two ServiceOperations together set to a Guid property on the incoming DataContracts (requests). Is there someway to get the StartWorkflow operation to stop
    in this scenario?

    HI Les G. Kinney,
    Welcome to WorkFlow forum.
    Workflow tracing offers a way to capture diagnostic information using .NET Framework trace listeners. Tracing can be enabled if a problem is detected with the application and then disabled again once the problem is resolved.
    According to your description above, it's recommended to enable
    workflow tracing first, it will give some hints why this happens.
    Windows Workflow scheduling services manage how workflow instances are scheduled by the workflow runtime engine. This resource is also available. See:
    https://msdn.microsoft.com/en-us/library/vstudio/ms735790(v=vs.90).aspx
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Business Partner Creation ( Master Tenant with Customer Account)

    Hello Experts
    Am trying to create a master tenant with a customer account, but as i save the business partner there is no corresponding creation of the master tenant with a customer account in the company code. The system only generates a business partner created. I have cheked the settings on business partner customer and have the correct FI custmer acount to the business partner, have also checked settings on the assignment of the reconciliation account to the BP and again it is compatible with the customer reconciliation account in Financials. I have also the synchronization data to see whether the synchronization object is activated, and it was not activated and i activated it, but still am not able to create a master tenant with customer account.
    Please Experts help me on this am very very  stranded
    Regards
    David Mavi

    Hi David,
                  Following activities are to be done to create customer simultaneously while the creation of business partner.
    Business Partner Number Range: IMG>Flexible Real Estate Management (RE-FX)>Business Partner>Relevant Settings for Business Partner in RE Context>Number Range>Business Partner Number Range
    Define Grouping and number range: IMG>Flexible Real Estate Management (RE-FX)>Business Partner>Relevant Settings for Business Partner in RE Context>Number Range>Define Groupings and Assign Number Ranges
    Also make sure that the customer account group is created with a number range which should be external. The number range for the business partner should be internal.           
    Master Data syncronization: IMG>Cross Application Components>Master Data Synchronization>Customer/Vendor Integration>Business Partner Settings>Settings for Customer Integration>Field Assignment for Customer Integration>Assign Keys>Define Number Assignment for Direction of BP to Customer
    In the settings select the same number range only if the number ranges for the customer account group and BP groups are the same.
    If u have done all these things and still the customer is not getting created then there might be a problem of the mandatory fields. i.e may be in customer account group some fields are mandatory which are not getting copied from the BP. So make all the fields in the customer account group as optional. and try to create new BP again.
    Regards,
    Deepak M

  • Create Document Set with custom Create Only permission set

    Here is the situation. We have a requirement where my customer wants to create document sets, however, document set/document level permissions are required.
    Setup: We created a new permission level called "Create Only". We then give the user Read and Create only permissions. This allows the user to theoretically create the item. We then run a Workflow on create that Replaces the permissions so that
    you are only allowed to view the ones you created along with other security groups based on their choices in the metadata fields.
    This setup works PERFECTLY when using a List or Form Library.
    However, for the life of me I cannot get it to work for Document Sets. If I have the same setup, I get an Access Denied message. However, it still creates the document set.
    What is weird, I've been playing around with custom permission levels and it seems as though the user has to have EDIT permissions at a minimum in order to create the document set. This will not work for me since I dynamically assign permissions to each
    document set based on what they select.
    As a side note, the only tool I have at my disposal is SharePoint Designer 2010.
    Does anyone know if there is an actual requirement to have EDIT permissions when creating a Document Set? Any input would be greatly appreciated.
    Alternatively, is there a way to setup permissions on a library for all NT Authenticated users so that we can give them the necessary permissions to create the Document Set, but still prevent them from see the other items and then the Workflow would set
    the permissions accordingly?
    I believe the more granular the permissions it uses those permissions instead so would this work?  I have not tested this theory yet.

    Hi,
    According to your description, my understanding is that you want to know if there is an actual requirement to have EDIT permissions when creating a Document Set and is there a way to setup permissions on a library for all NT Authenticated users and prevent
    them from seeing items created by others.
    For the first question, per my knowledge, if a user is given the Add Items permission, he/she can create a document set in SharePoint.
    However, there is an error “access denied” after the document set is created. It is due to the user has no permission to access the page which SharePoint will redirect the user to after finishing creating the document set.
    If the user is also given Edit Items permission, there will be no error when he/she create a document set.
    For the second question, I recommend to follow the link below to
    customize item permissions for each document submitted to a document library and remember to give the
    NT Authenticated users contribute permission.
    http://blogs.technet.com/b/spke/archive/2010/04/09/configure-item-level-permissions-for-document-libraries-sharepoint-2010-edition.aspx
    To grant permission to NT Authenticated users, please refer to the link below:
    http://office.microsoft.com/en-in/sharepoint-server-help/what-happened-to-add-all-authenticated-users-HA101805183.aspx
    Best regards.
    Thanks
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • STO with customer consignment

    Hi gurus,
    Do you any idea how I can I set up following stock transfer process?
    Plant A of company code X delivers the goods directly into the consignment stock of end customer abroad.
    This consignment stock belongs to the plant B of company code Y. We need an IC-invoice between X and Y and a delivery document (fill-up) for plant A to end customer delivery.
    My first plan was a stock transfer via 643, but the problem is it is not possible to post 101 with customer consignment.
    I am trying to set up one central document and all process is covered by this one.
    Do you have any idea how this can be solved? Perhaps workflow? Or a new movement type?
    Thanks in advance
    saptor

    >
    saptor wrote:
    > Hi lvshaolong,
    >
    > Thanks for your reply. I had also tried this way but in that case the goods stay in plant B (consigment stock) and company Y does not want to have any consignment stock.
    > Do you have any other idea?
    > Thanks
    > saptor
    hi,
       if my below understanding is correct  ,
       your backgroud : plant A belong to company X and plant B belong to Y
      and your Biz process is :1 create consignment SO to ship out inventory from plant B directly but within the sales are of company code X 2 customer consumption of inventory and you create order to charge your customer 3 IC billing from suppling plant B A 4 IC invoice in buying plant X
      then , the conresponding process in SAP :
       1 create consignment SO in company code X with plant B
       2 post GI with movement tyep 631
       3 create SO for consumption purpose
       4 post GI with movement type 631 W-
       5 billing your customer
       6 IC billing from supplying plant B( you need additional setup in IDES for this step)
       7 invoice account creation in companly code X
    above are what i have walked thru in my IDES
    regards

  • SSO with Custom LDAP

    This is the landscape :-
    Web Application / Portal at Oracle Web Center Suite (WCS).
    SAP BO 4.0
    Authentication using Custom LDAP & SSO with Trusted Authentication.
    Used OpenLDAP for authentication via RadiantOne VDS as the proxy.
    Activities :
    Authenticate the BO users with OpenLDAP via RadiantOne.
    Synchronize the BO user group from OpenLDAP via RadiantOne.
    Used openDocument.jsp to open WEBI reports.
    Problems :
    We configure the LDAP as Custom. Attributes mapping as default.
    When BOE trying to connect the RadiantOne VDS & create user u201Cuser01u201D which already exists in the OpenLDAP server. It throws the exception :
    "An internal error has occurred in the secLdap plugin.u201D
    When trying to create user that does not exist in LDAP. It throws the exception :
    u201CThe secLdap plugin failed to get the dn for the user notuser.u201D
    Please advise us how to resolved this internal error if we want to SSO with custom LDAP !!
    Thanks & regards,
    Herries E

    Hi,
    Herrie, Roland is correct, OpenLDAP is not supported and you can run into problems if you want to escalate issues in the future. The customer must have that into account.
    However, LDAP is pretty standard and usually you just need to make sure that the attribute mappings is correct.
    Are users correctly created when you map an LDAP group?
    Are you able to manually authenticate using LDAP? You can use the CMC page and select authentication LDAP
    When you have confirmed that LDAP manual authentication is working, you can set up Trusted Authentication. Check first that the system is working just using QUERY_STRING:
    https://service.sap.com/sap/support/notes/1593628
    When trusted auth is confirmed to work, you can configure the parameters that Radiant users to pass the user: cookies, web session, etc.
    Regards,
    Julian

  • Join Feith in DC FREE April 27th: Workflow Seminar & Workshop (with Oracle)

    Register free here: [http://www.feith.com/index.php?option=com_content&view=article&id=14o]
    Hey, fellow Oracle Workflow Professionals! Feith Systems wants to invite those in the DC area to a FREE seminar and workshop (and free breakfast!) on April 27th at the Hyatt Regency Capitol Hill, *"Achieve Your Workflow and BPM Goals: Doing More With Less"*.
    In an environment where we're all trying to achieve more with less - less time,+ less+ budget, less personnel - Feith wants to teach you how to achieve your workflow goals through streamlining and automation with better-sized, better-value solutions, including seamless integration with your existing legacy Oracle system. Discuss your workflow challenges, connect with industry colleagues, leaders, and experts, and learn how you can maximize your business processes, streamline your workflow, and create lasting efficiency in operational control in a tough new budget environment.
    Resister through the link above, or email me at [email protected]
    Activities include:
    • Presentation and demonstration: "Achieve Your Workflow and BPM Goals"
    • Special guest speaker Eric Kamenitzer, Operations Director, Chugach for NASA Services
    • BridgeLogiQ Express clinic and tutorial
    • One-on-one breakout sessions with the Oracle and Workflow Expert Teams +(bring your questions!)+
    • Plus full complimentary breakfast and complimentary afternoon break service
    "If you've ever thought 'There's got to be a better way,' there is, and it's easier and more cost-effective than you think."
    The Details:
    • Date: April 27, 2011
    • Time: 8:30am - Sign-in and complimentary breakfast. 9:00am - Seminar begins.
    • Location: Hyatt Regency on Capitol Hill, 400 New Jersey Ave NW
    • Cost: FREE
    • Registration: [Feith.com Registration Powered by Feith Forms iQ|http://www.feith.com/index.php?option=com_content&view=article&id=140]

    You can still register.

  • Is there an option to import with custom groups in PSE 9's organizer?

    With the Organizer included with PSE7 (and earlier, as I recall), I always used the option Custom Groups (Advanced) in Create Subfolders. This allowed me to easily save imported photos into different folders and naming the files accordingly.
    For example, on one media card I might have some family activities, some Kiwanis activities, and skiing activities. With Custom Groups, I could import them in small groups, with different base names, and so on.
    How do I accomplish those same things in PSE9. It was such a useful feature, Please tell me they did not remove it.
    Thanks!

    As far as adding java script to the generated form you can add a pl/sql code having java script in it for eg below is a sample function
    which has javaScript in it.
    CREATE OR REPLACE FUNCTION sample_javaScript
    RETURN varchar2 IS
    l_string varchar2(1000);
    l_char_en varchar2(1) := chr(38);
    begin
    l_string := '<script language="JavaScript1.1">'||chr(10)
    ||'<!--'||chr(10)
    ||'function getField(form,fieldName,theElement)'||chr(10)
    ||'{ '||chr(10)
    ||'var objName = "";'||chr(10)
    ||'var tmp = ""; '||chr(10)
    ||'var recnummer = 0;'||chr(10)
    ||'var dAction = ""; '||chr(10)
    ||'var sel_idx = 0; '||chr(10)
    ||'var cnt = 0; '||chr(10)
    ||'var instance = 0; '||chr(10)
    ||'var slicedName; '||chr(10)
    ||'var slicedButton; '||chr(10)
    ||'var fillData = new Array(); '||chr(10)
    ||'slicedButton = theElement.name.split("."); '||chr(10)
    ||'recnummer = parseInt(slicedButton[3],10); '||chr(10)
    ||'for (var i = 0; i < form.length; i++) '||chr(10)
    ||'{ '||chr(10)
    ||'slicedName = form.elements.name.split("."); '||chr(10)
    ||'tmp = slicedName[2]; '||chr(10)
    ||'instance = parseInt(slicedName[3],10);'||chr(10)
    ||'if (!tmp) '||chr(10)
    ||'continue; '||chr(10)
    ||'objName = tmp; '||chr(10)
    ||'if (objName == fieldName '
    ||l_char_en||l_char_en||' instance == recnummer) '||chr(10)
    ||'{'||chr(10)
    ||'return form.elements[i].value; '||chr(10)
    ||'} '||chr(10)
    ||'} '||chr(10)
    ||'} '||chr(10)
    ||'//-->'||chr(10)
    ||'</script>'||chr(10);
    return l_string;
    end sample_javaScript;
    Grant this to the schema of the form if they are in different schemas.
    In the last sql section (Before Display of the form) you can simply call this function like this.
    htp.p(schemaName.sample_javaScript);This will place java script at the form level.
    You can similarly write what all javascripting you wish to do at the form level instead of
    element level.For firing of Lovs also you can write code in the java script that will do the required action.

  • Custom activities outlook sync in CRM 2015

    Hi All, 
    Can we sync custom activities with Outlook in CRM 2015?
    Thanks
    nasayoo

    Hello,
    No, you can't.
    Dynamics CRM MVP/ Technical Evangelist at
    SlickData LLC
    My blog

  • Difference between VMI and collaboration with customer

    Hai,
             I am trying to understand the difference between VMI and collaborative planning with customer(CPC)
    Please correct me if I am wrong. In VMI, a vendor or manufacturer sells his material to customer and through EDI, the customer gives the information such as forecast, stock etc.
    In CPC, the vendor and customer interchange information, such as demand, stock levels, promotions, delivery dates etc., based on ITS.
    What is the difference between these two?
    If I am not wrong, EDI is used for outside company communication andITS for within. So, can I say that VMI is for customer outside the company and CPC for internal customer?
    Thank you.

    Hi Visu,
    Service provided by a vendor for a customer, whereby the vendor plans material requirements in the customer's company. Vendor-managed inventory is only possible if the vendor has access to the customer's current stock and sales data.
    In the ERP system, the following functions are available for vendor-managed inventory:
    Transfer of stock and sales data by EDI
    Receipt of stock and sales data by EDI
    Replenishment planning for customers
    Creation of a purchase order for an external EDI order acknowledgment
    supply chain management tool that synchronizes demand signals and supply chain activities by utilizing Internet technology. Collaborative Planning enables supply chain partners to view, share and synchronize common information within the supply chain.
    Hope this helps.
    Regards,
    Mohan

  • How do I add URI web link with custom tooltip like "CLICK HERE TO UPDATE" instead of URI web link in tooltip.

    How do I add URI web link with custom tooltip like "CLICK HERE TO UPDATE" instead of URI web link in tooltip.

    You've probably found an answer to this by now, but I think this has been addressed in another forum -- The link below suggested using a button and adding the tooltip to the button. 
    https://forums.adobe.com/thread/304974?start=0&tstart=0
    Sounds like it would work but I haven't actually tried it. 
    Good luck~!

Maybe you are looking for