| | | Supreme Being
       
Group: Forum Members Last Login: Wednesday, December 09, 2009 Posts: 16, Visits: 78 |
| I am completely new to Skelta and need some assistance with variables. When a work item is opened, there is a comments box, an approve button and a reject button. From what I understand, the comments based off what button is pressed is wrote to Variable.^ActivityNameCommentApproved or Variable.^ActivityNameCommentRejected. I am currently using these variables to update the status on a SharePoint list item (it is working). My problem is that I cannot figure out what the variable is for actions “more information needed” or “complete” etc. when related to a task. What are the variables for this? The goal is to have the comments wrote to a SharePoint list item. I’ve tried ^TaskNameCommentApproved, ^TaskNameCommentRejected, ^TaskNameCommentSubmitted, etc. I am defining them in the Start variables section. When I look at the process execution variables, the ^ActivityNameCommentApproved string has a value, but the other variables do not (value listed as null). Any insight would be appreciated. |
| | | | Supreme Being
       
Group: Forum Members Last Login: Thursday, January 27, 2011 Posts: 29, Visits: 46 |
| Hi , As per my understanding on your query, you are trying to capture the comments of a task activity. Variables for capturing Comments is Comments entered in a Task can be retrieved using a variable with the following syntax: '^'+_HWSActivity.ActivityName+'CommentTaskStatus'. For example, if a comment entered along with a task response submission has to be retrieved from an activity named 'SolveNetworkIssue', add a variable with ^SolveNetworkIssueCommentTaskStatus as its name. The variable gets initialized with the comment entered by the resource after the activity submission. Please refer the Skelta help file developer guide for more information. Thanks, Madhu B |
| | | | Supreme Being
       
Group: Forum Members Last Login: Wednesday, December 09, 2009 Posts: 16, Visits: 78 |
| | Thank you for the information. It worked! I might be missing some documentation. I have a user guide and a lists and forms guide. Is there a seperate developer guide out there? If so, is that something I can get to from the Skelta site, or will I need our rep to get it? |
| | | | Supreme Being
       
Group: Forum Members Last Login: Wednesday, December 09, 2009 Posts: 16, Visits: 78 |
| I have created several variables to update the same Sharepoint comments item. However, the variable overwrites the comments item even when the Sharepoint item is set to multiple lines. Is there a way to set the variable to append? Or, link all the variables together? |
| | | | Supreme Being
       
Group: Forum Members Last Login: Monday, December 21, 2009 Posts: 102, Visits: 124 |
| | Yes, you can append the variable by using the expression editor. For example, I have sharepoint column EmpName and I have appended the value of that column using the below code in the expression editor of Update variable activity. XmlVariables.List1.List.ListItem.SiteColumns.EmpName = XmlVariables.List1.List.ListItem.SiteColumns.EmpName+" "+Variable.var1 Find attached the document (Appending a column.doc), sample workflow definition xml file (TestRepoSan_AppendWF_1.xml) for reference. Thanks, Sri
Srinivasa Rao Pentapati |
| | | | Supreme Being
       
Group: Forum Members Last Login: Thursday, February 10, 2011 Posts: 28, Visits: 47 |
| | Ooops! The attachment was missed out in Sri's reply. Find the same on this thread. Regards, Saravanan
|
| | | | Supreme Being
       
Group: Forum Members Last Login: Wednesday, December 09, 2009 Posts: 16, Visits: 78 |
| | Thank you so much for the information. I have been trying to make my workflow work based off of your example and I am running into an issue. I get erros in the expression when I try to save the expression I created. The expression I am using is XmlVariables.List1.List.ListItem.SiteColumns.Person Comment+" "+Variable.^OneCommentChoiceStatus I am choosing the return type to be system.string. The error I get is: | c:\WINDOWS\Temp\2vjp9hpy.0.cs(13,60) : error CS1002: ; expected | | | c:\WINDOWS\Temp\2vjp9hpy.0.cs(13,81) : error CS1001: Identifier expected The compiled code is: using System; using System.Text; using Workflow.NET; namespace Samplenamespace[removed] { public class Sampleb[removed] {
Workflow.NET.Engine.Context Globalcontext;
public object SampleMethod[removed] (Workflow.NET.Engine.Context _context) { return XmlVariables.List1.List.ListItem.SiteColumns.Person Comment+" "+Variable.^OneCommentChoiceStatus; }
} } Any help would be highly appreciated. | |
| | | | Supreme Being
       
Group: Forum Members Last Login: Thursday, November 19, 2009 Posts: 21, Visits: 34 |
| | Hi, Please let us know if you have dragged and dropped the object from the left tree menu of the expression builder or you have typed it manually. Regards,
Arvind |
| |
|
|