Needed details on Workflow context ?

Under Workflow context in Sharepoint designer i want to know behaviour of below listed item.
Associate Name :  ?
Associate Manual Start:  ?
Associate Manual Start Required Permission:  ?
Associate Start on Item change:  ?
Associate Start on Item Creation:  ?
Associate Start to Approve Major version:  ?
Associator:  ?
Current item URL:  ?
Current site URL:  ?
Current User:  ?
Date and time last RUN:  ?
Date and Time Started:  ?
Initiator:  ?
Instance ID:  ?
Item Name:  ?
Workflow status URL:  ?
Thanks
venkateshrajan

http://social.technet.microsoft.com/Forums/en-US/5a5d64bc-3583-4dca-9a66-a661491db82c/getting-list-detailsof-the-associated-list-with-workflow-in-custom-workflow?forum=sharepointdevelopmentprevious
http://stackoverflow.com/questions/1243736/how-to-get-the-context-item-in-workflow-activity-sharepoint 
The answer to this is a couple steps:
Add the properties to your Custom Activity .cs
Link the properties in your .actions file (so SPD knows how to map to your properties)
Use the properties in your code
STEP 1: Here is the code for the properties (my class is named GetEmails which you will need to rename to be your class):
public static DependencyProperty __ContextProperty = System.Workflow.ComponentModel.DependencyProperty.Register("__Context", typeof(WorkflowContext), typeof(GetEmails));
[Description("The site context")]
[Category("User")]
[Browsable(true)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
public WorkflowContext __Context
get
return ((WorkflowContext)(base.GetValue(GetEmails.__ContextProperty)));
set
base.SetValue(GetEmails.__ContextProperty, value);
public static DependencyProperty __ListIdProperty = System.Workflow.ComponentModel.DependencyProperty.Register("__ListId", typeof(string), typeof(GetEmails));
[ValidationOption(ValidationOption.Required)]
public string __ListId
get
return ((string)(base.GetValue(GetEmails.__ListIdProperty)));
set
base.SetValue(GetEmails.__ListIdProperty, value);
public static DependencyProperty __ListItemProperty = System.Workflow.ComponentModel.DependencyProperty.Register("__ListItem", typeof(int), typeof(GetEmails));
[ValidationOption(ValidationOption.Required)]
public int __ListItem
get
return ((int)(base.GetValue(GetEmails.__ListItemProperty)));
set
base.SetValue(GetEmails.__ListItemProperty, value);
public static DependencyProperty __ActivationPropertiesProperty = DependencyProperty.Register("__ActivationProperties", typeof(Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties), typeof(GetEmails));
[ValidationOption(ValidationOption.Required)]
public Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties __ActivationProperties
get
return (Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties)base.GetValue(GetEmails.__ActivationPropertiesProperty);
set
base.SetValue(GetEmails.__ActivationPropertiesProperty, value);
STEP 2: Then in your .actions file add to your block the mappings for those properties (note the entries for __ListID, __ListItem, __Context, and __ActivationProperties):
<Action Name="[DESCRIPTION OF YOUR ACTION]"
ClassName="[Your.Namespace.Goes.Here].GetEmails"
Assembly="[yourDLLName], Version=1.0.0.0, Culture=neutral, PublicKeyToken=0bfc6fa4c4aa913b"
AppliesTo="all"
Category="[Your Category Goes Here]">
<RuleDesigner Sentence="[blah blah blah]">
<FieldBind Field="PeopleFieldName" Text="people field" Id="1"/>
<FieldBind Field="Output" Text="emailAddress" Id="2" DesignerType="parameterNames" />
</RuleDesigner>
<Parameters>
<Parameter Name="__Context" Type="Microsoft.SharePoint.WorkflowActions.WorkflowContext" Direction="In" />
<Parameter Name="__ListId" Type="System.String, mscorlib" Direction="In" />
<Parameter Name="__ListItem" Type="System.Int32, mscorlib" Direction="In" />
<Parameter Name="PeopleFieldName" Type="System.String, mscorlib" Direction="In" />
<Parameter Name="Output" Type="System.String, mscorlib" Direction="Out" />
<Parameter Name="__ActivationProperties" Type="Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties, Microsoft.SharePoint" Direction="Out" />
</Parameters>
</Action>
STEP 3: Here is an example execute function:
protected override ActivityExecutionStatus Execute(ActivityExecutionContext provider)
Output = string.Empty;
try
SPWeb web = __Context.Web;
// get all of the information we currently have about the item
// that this workflow is running on
Guid listGuid = new Guid(__ListId);
SPList myList = web.Lists[listGuid];
SPListItem myItem = myList.GetItemById(__ListItem);
catch (Exception e)
return ActivityExecutionStatus.Closed;
If this helped you resolve your issue, please mark it Answered

Similar Messages

  • Problem about get the workflow context

    There are 2 servers.
    One is Weblogic server (server1), deployed a fusion web project on it.
    Another is BPM server (server2), deployed the bpm process on it.
    On the fusion web project, we use API to get the tasks. But we encountered a problem about get the workflow context.
    There are 2 method to get the workflow context.
    1. getTaskQueryService().authenticate(userId, password, null, null), this method need to pass in useId and password, we can get the user form request but can't get
    password.
    2. getTaskQueryService().createContext(request), we pass the request on server1, but can't get the context on server2, exception thrown.
    Appreciate if you can give some help.

    javax.el.ELException: java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[jcooper, ERole]
         at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
         at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
         at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
         at com.sun.el.parser.AstValue.getValue(Unknown Source)
         at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
         Truncated. see log file for complete stacktrace
    Exception thrown when createContext()

  • How to read the details in the context node of the custom controller

    Hi friends,
        My requirement is i enhanced the component ICCMP_BP_DETAILS , now on EH_ONSAVE i want to read the details of the Context node in the Custom COntroller .
    In custom controller from ICCMP_BP_DETAIL/CuCoBPDuplicate  From this in context node CUSTOMER is there in that attributes first name last name is there i want to read those details
    so can u pls provide the logic for this how can i get the values.
      am very new to the BSP programming
    Regards
    Yogesh

    Hi Suchitha,
    when i am following the above code the lr_entity is not Bound, so can u pls suggest is there any thing is missing
    i used the below mention code but lr_entity is not bound
    DATA: lr_cuco type ref to CL_ICCMP_BP_CUCOBPDUPLICA_IMPL.
                lr_entity type ref to cl_crm_bol_entity.
    lr_cuco ?= me->get_custom_controller( 'ICCMP_BP_DETAIL/CuCoBPDuplicate') .
    CHECK lr_cuco IS BOUND.
    lr_entity ?= lr_cuco->typed_context->customer->collection_wrapper->get_current( ) .
    CHECK lr_entity IS BOUND .
    lr_entityIF_BOL_BO_PROPERTY_ACCESSGET_PROPERTY_AS_VALUE( iv_attibute =  'FIRST_NAME' ev_attribute = lv_firstname ) .
    Please correct the code if any thing is missing
    Regards,
    Yogesh

  • I want to use Get Panel Image in Labview 5.0.1 and need details on how to save the BMP data generated

    I am trying to generate an application that saves a copy of its front panel on completion. This is easy to do using an invoke node with Print VI to HTML but this does not work in an .exe format. I have seen elsewhere that you have to use the Get Panel Image method, but no details are supplied in LV 5.0.1 documentation of how to use the "image" data (1-D Unsigned Byte array) that is generated. I want to save this in a format that can then be read as a bitmap in any standard graphics package. Any assistance?

    Hi,
    If you'd upgrade to LV5.1 or 6 you could use the 'standard' vi's for this.
    You need a VI called "Write BMP File.vi". It's not shipped with LV5.0.1.
    This vi only uses 3 subVI's, so perhaps someone at NI can convert it and
    send it to you (sorry, I won't, it's copywrited).
    If you cannot get this VI anywhere, you'll need to figure out the BMP file
    format yourself. It's not too complicated, but still could take some days.
    Perhaps someone figured it out before LV5.1 was released.
    Regards,
    Wiebe.
    "RDK" wrote in message
    news:[email protected]..
    > I want to use Get Panel Image in Labview 5.0.1 and need details on how
    > to save the BMP data generated
    >
    > I am trying to generate an application that saves a copy
    of its front
    > panel on completion. This is easy to do using an invoke node with
    > Print VI to HTML but this does not work in an .exe format. I have seen
    > elsewhere that you have to use the Get Panel Image method, but no
    > details are supplied in LV 5.0.1 documentation of how to use the
    > "image" data (1-D Unsigned Byte array) that is generated. I want to
    > save this in a format that can then be read as a bitmap in any
    > standard graphics package. Any assistance?

  • Cant See Master Detail Option in context menu.

    While doing this Tutorial
    http://www.oracle.com/technology/products/jdev/101/tutorials/e2ebcfaces/buildmaster-detailpagewithjdevandadfbc.htm
    Creating a Master-Detail JavaServer Faces Page
    12. Drag OrdersView2 to the visual editor.
    JDeveloper opens a context menu with the available options for that data control.
    I Cant See Master Detail Option in context menu.
    Can Any one help.

    Hi,
    I am facing the same problem.
    I cant see the item in the popup context menu like here:
    [Web Dynpro ABAP and eCatt Testing |https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/media/uuid/e3b19f11-0a01-0010-409d-b3951f754963]

  • Mails sent to the iPhone (5S) do not appear in sent mail. Neither iOS nor OSX. I need detailed instructions IMAP and SMTP on iPhone and on OSX

    Mails sent to the iPhone (5S) do not appear in sent mail. Neither iOS nor OSX. I need detailed instructions IMAP and SMTP on iPhone and on OSX

    I have two accounts gmail.com and icloud.com.Only mails sent from iPhone not appearing in sent by IP or in OSX

  • Need detail information, steps would be nicer, to upgrade from Exchange 2003 to Exchange 2010 to setup in test system first then try on production, since not much room for downtime, thanks bekir

    Need detail information, steps would be nicer,  to upgrade from Exchange 2003 to Exchange 2010 to setup in test system first then try on production, since not much room for downtime, thanks bekir

    Hi,
    Overview of the upgrade progress from Exchange 2003 to Exchange 2010 including the following steps:
    Installing Exchange 2010 within your organization on new hardware.
    Configuring Exchange 2010 Client Access.
    Creating a set of legacy host names and associating those host names with your Exchange 2003 infrastructure.
    Obtaining a digital certificate with the names you'll be using during the coexistence period and installing it on your Exchange 2010 Client Access server.
    Associating the host name you currently use for your Exchange 2003 infrastructure with your newly installed Exchange 2010 infrastructure.
    Moving mailboxes from Exchange 2003 to Exchange 2010.
    Decommissioning your Exchange 2003 infrastructure.
    For more details, please refer to this following document.
    http://technet.microsoft.com/en-us/library/ff805040(v=exchg.141).aspx
    Best Regards.

  • I need detailed instructions for scanning to my iMac using my hp desk jet 2540.

    I need detailed instructions for scanning to my imac, using the HP Deskjet 2540.

    Follow the instructions in this article, http://support.apple.com/kb/ht4505
    I double checked and your scanner is supported.

  • Need detailed manual showing how to install a pentium III motherboard on compaq armada m700

    I tried ti install a pentium III on my pentiumII compaq armada m700 It fails to power up. . I need detailed and complet directions with picturesshowing how to do this..additionally getting the screws out and in was near impossibe. Any suggestion there? .I am disabled and have very poor finger and hand dexterity. Thanks for any help. I cannot thow this computer away. Money? I have none.

    http://h10032.www1.hp.com/ctg/Manual/c01120667.pdf  This is the manual
     http://h10025.www1.hp.com/ewfrf/wc/manualCategory?lc=en&dlc=en&cc=us&tool=&query=compaq%20armada%20m...
     I got it from here.

  • Need detailed information about u0093CALL CUSTOMER FUNCTIONu0094.

    Need detailed information about “CALL CUSTOMER FUNCTION”.

    Hello Ayan
    “CALL CUSTOMER FUNCTION”. is the old version of
    customer exits. Using transaction SMOD you can see which customer exits SAP provides. Using transaction CMODyou can see the enhancement projects which make use of these SAP enhancements. 
    SAP enhancements consist of different components: function modules, screens, etc.
    For example, SAP enhancement CATS0001has a single component, function module EXIT_SAPLCATS_001. This function module is called within include LCATSF54:
    *&      Form  READ_WORKLIST_FROM_EXIT
    *       Read worklist from customer exit                               *
    FORM read_worklist_from_exit.
      DATA: l_catsw TYPE catsw_tab.        "XZQAL0K061795
    *----------------Beginn XZQPL0K017888----------------
      DATA: l_icatsw_fix LIKE catsw OCCURS 0.          "XZQPL0K017888
    * Sichern der ICATSW_FIX, damit mögliche Änderungen aus
    * User-Exit/Badi rückgängig gemacht werden können.
      l_icatsw_fix = icatsw_fix.
    *----------------Ende XZQPL0K017888----------------
      CALL CUSTOMER-FUNCTION '001'
           EXPORTING
                sap_tcats      = tcats
                sap_pernr      = catsfields-pernr
                sap_dateleft   = catsfields-dateleft
                sap_dateright  = catsfields-dateright
                sap_datefrom   = catsfields-datefrom    "XZQPL0K017888
                sap_dateto     = catsfields-dateto      "XZQPL0K017888
           TABLES
                sap_icatsw     = icatsw
                sap_icatsw_fix = l_icatsw_fix           "XZQPL0K017888
           EXCEPTIONS
                OTHERS        = 1.
    *-------------Beginn XZQAL0K061795 Worklist-Badi in CATS -------
      IF badi_worklist IS INITIAL.
        CALL METHOD cl_exithandler=>get_instance   "Aufruf der Factory-
           CHANGING instance = badi_worklist.      "Methode
      ENDIF.
      l_catsw = icatsw[].
    * Restaurieren der l_icatsw_fix für das Badi, falls sie
    * doch im User-Exit geändert worden ist.
      l_icatsw_fix = icatsw_fix.                  "XZQPL0K017888
      CALL METHOD badi_worklist->get_worklist    "Aufruf des Add-Ins
        EXPORTING
          sap_tcats      = tcats
          sap_pernr      = catsfields-pernr
          sap_dateleft   = catsfields-dateleft
          sap_dateright  = catsfields-dateright
          sap_datefrom   = catsfields-datefrom    "XZQPL0K017888
          sap_dateto     = catsfields-dateto      "XZQPL0K017888
        CHANGING
          sap_icatsw     = l_catsw
          sap_icatsw_fix = l_icatsw_fix.          "XZQPL0K017888
      icatsw[] = l_catsw.
    *-------------Ende XZQAL0K061795 Worklist-Badi in CATS -------
    ENDFORM.                               " READ_WORKLIST_FROM_EXIT
    In this routine you can see the most up-to-date version of customer exits:
    BAdIs (Business AddIns). Inbetween SAP has developed BTEs(transaction FIBF) which are basically dynamically called function modules. 
    Regards
      Uwe

  • NEED INFO REGARDING WORKFLOW MAILER &MAPI

    HI,
    Need information
    our workflow mailer is configured with LOTUS NOTES now we wanna to
    move to OUTLOOK and we use IMAP4 protocol now we wanna to
    replace this with MAPI.
    So please let me know how to configure in OUTLOOK and also
    MAPI is a oracle certificated protocol and how to configure it.
    Thanks in Advance,
    Vandana

    Please see these docs.
    What Mail Server Types Can Be Used To Configure The Workflow Java Mailer In R11i and R12.+ [ID 943578.1]
    A System Administrators' Guide: Oracle Applications 11i Workflow [ID 139745.1]
    WF 2.x: Configuring the Notification Mailer v 2.0.3 - 2.6.2 (not OAM) - MAPI [ID 104197.1]
    Thanks,
    Hussein

  • What is the windows server 2013 license version than I need to install workflow manager 1.0

    what is the windows server 2013 license version than I need to install workflow manager 1.0?
    enterprise or standard? can I install it on datacenter?
    please provide me with the reference.
    thanks

    Workflow Manager will work with either SharePoint Enterprise or Standard.  It doesn't work well with Foundations since it depends on User Profiles to pass user identity to the workflow.  And yes you can install it on Windows Server datacenter edition.
     Here are the supported platforms for installation
    http://msdn.microsoft.com/en-us/library/jj193487(v=azure.10).aspx
    This article talks about integration with SharePoint and states that Foundation is not supported, but it doesn't differentiate between the Server editions, so any edition will do.
    http://technet.microsoft.com/en-us/library/jj658588.aspx
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Need detail information about Data Cleanse Transform.

    Hi Every One,
    I Need detail information about Data Cleanse Transform.
    1. what is Local Cleansing Packages?
    2. what are Directories and Dictioneries.
    3. Data Cleanse Transform INPUT , OPTIONS, OUTPUT tabs and usage.
    4. Details on Transform Input Field name in Data Cleanse INPUT tab.
    5. What is PARENT_COMPONENT,FILED_NAME,FIELD_CLASS,CONTENT_TYPE in  Data Cleanse OUT POT TAB.
    I tried using "EnglishNorthAmericaDataCleanse" transform with NAME_OR_FIRM_LINE1.  When I ran the job I got below warning message and my job was success full nut status it shown as failed.
    Warning message:
    "Trasform Data Cleanse is unable to retrieve cleansing packages from Cleansing Package Builder. Only local cleansing packages are available. Info: Unable to log on: Could not connect to server d184932040.sng1.attens.net:6400.  Please check that the server name is  correct, and that the server is running. "
    Please make me understand, why did I get above message.
    Thanks in Advance ...

    Hello,
    Cleansing package is a reference file that contains content and rules around person, firm, title, phone data and so on.  Cleansing package used to be referred to as dictionaries.  Directories are usually referred to address reference data or address directories.  The input, output and option tabs are similar to other Data Quality transforms.  For detail information on what each of the input fields and output fields are and how the options work can be found in the Data Services’ Designer Guide (http://help.sap.com/bods).
    The warning message you are getting is stating that Data Services is not able to connect to the server to check to see if you have made modifications to the PERSON_FIRM cleansing package.  You are not required to make any changes to the PERSON_FIRM cleansing package, but can change rules or content based on your organizational rules.  If you want to make changes you will need to install SAP Information Steward.  If you would like to install SAP Information Steward you can find documentation for installation on the Help Portal, http://help.sap.com/bods, along with some great Videos.
    You can also find some great Data Services Product Tutorials on the SAP Community Network, at http://scn.sap.com/docs/DOC-54115.
    Thank you,
    Lynne Lintelman

  • Do we need to have workflow in place to send payslip by email?

    Do we need to have workflow in place to send employee monthly payslip by email?
    And if we can send it without workflow, then, is there is any involvement of ABAP?
    Can system use the email address maintained in the infotype for an employee?

    Thanks could you please elaborate on what should be included in the Functional Specs that would be given to an ABAP Consultant.

  • HELP...new computer, new library, NO BACKUP need detailed instructions

    Hello all,
    I just built my new PC and put win 7 on it the other day. I downloaded the newest itunes and got all my music and such on there, great.
    Now the iphone. I just did a backup of it in its current state but there is not one from my old computer. I understand losing music and photos and even having to get apps again, fine, no problem. Its my contacts I am concerned with.
    I tried the program Backup!Contacts but when it goes to send the vcard file it doenst send me the file, its messed up, so I dont have a backup of my contacts on ANYTHING and dont want to lose them.
    I currently only have Yahoo as my email. I do not have a mail client on my computer (outlook does not come with office 2007 home and student).
    Question and help needed, how do I keep my contacts if it syncs to a new library? I understand that like I said, losing music etc will happen, but I cant lose the contacts.
    On my previous computer, it deleted contacts on 3 seperate occasions when trying to sync, I did the merge and all that stuff and it all resulted in the same problem. So now what do I do? How do I keep my contacts? How do I get my contacts off my phone once its back on the new library system? I need detailed instructions, as I said before, when I tried this before it just simply delted everything. I am extremely worried that it will happen again. I do not have apple support as I forgot to register for the 2nd year of support before it ran out. I will at some point have to have them backed up because I will be getting a new phone in August or when the newest versions come out since I will be out of contract and get a good deal.
    Thanks for the help. I appreciate it. I really need it, Im not an itunes guy except for music, I just dont get the syncing and it confuses me really bad.

    Contacts are included with your iPhone's backup, which is updated by iTunes as the first step during the sync process. This link provides the data included with your iPhone's backup.
    http://support.apple.com/kb/HT1766
    Although contacts are included with your iPhone's backup, contacts are designed to be synced with a supported application on your computer. With Windoze, this can be with Outlook 2003 or 2007 along with syncing calendar events, or with Windows Contacts for syncing contacts only.
    When syncing iTunes content and transferring photos from another computer, all iTunes content and photos transferred from a different computer will be erased from your iPhone first, but no other data is touched on your iPhone - especially if you aren't syncing contacts with a supported application on your computer. Your iPhone is not completely erased of all data and certainly not any iPhone settings when transferring iTunes content and photos from another computer.
    Before syncing contacts with Windows Contacts, enter one contact in Windows Contacts. Make this contact up if needed, which can be deleted later. This will provide a merge prompt with the first sync with Windows Contacts, which you want to select.

Maybe you are looking for

  • How to modify files in the jar pack

    Is there any way to allow the classes to read and write the files or directories which are inside the same jar file? Thanks

  • How To Fade In a JPG or GIF Image using Inspector Build-In or Action

    Inspector doesn't seem to have any Build-In or Action that allows me to FADE IN an image. There only seems to be an Opacity Action that allows a FADE OUT. This seems like kind of a software design oversight. Am I missing something in Keynote?

  • Flash CD loading external content (in the CD) adress problem

    Hi I have a CD and have all my files in it and I want to load them into my flash file, how can I do it?

  • Buying music while being abroad

    Hello, I live in Canada, but am working in a country which does not have an iTunes Music Store. Can I still buy music from the Canadian iTunes Music Store? My credit card is Canadian (but had to change my billing address to here). Thanks! Paul

  • How can I get a usable context on GNU/Linux?

    Supposedly WebGL is now enabled on Linux, but every time I try to view WebGL content it fails with this error: '''Warning: WebGL: Can't get a usable WebGL context Source File: ''http://example.com/'' Line: ''n''''' How can I enable WebGL on Linux?