Home      Members   Calendar   Who's On

Welcome Guest ( Login | Register )
      

Home » Skelta Workflow Net » Skelta Workflow Net » Application Development » How to read form data in Visual Studio Class


How to read form data in Visual Studio ClassExpand / Collapse
Author
Message
Posted Monday, September 28, 2009
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Tuesday, May 17, 2011
Posts: 15, Visits: 100
Hello,

I'm really new to Skelta and I'm having some issues with what seems like a very simple task.  I've created a simple form which when added to the workflow gets an XML variable name of SFFormData.  I've tested the form and get a XML string out.  In the workflow step following my Invoke Form I want to write a class that checks the data entered on that form.  My question is, how do I get access to the SFFormData XML?

I would think this would be a simple as creating a new XML object and then assigning SFFormData to that XML object.  Am I really wrong?

Can someone show me some sample code on how to do this?  I've attached a pdf showing my form, the xml output, the variable as shown in the Start object and where I would like to have my class read and process the form data.

Thanks for all your help!

  Post Attachments 
Help.pdf (153 views, 282.13 KB)

Post #1597
Posted Tuesday, September 29, 2009
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Monday, December 21, 2009
Posts: 102, Visits: 124
Hi,

The information you are looking is available in the "Skelta BPMNET 2009 Developer Guide.chm" and please refer the same.  Open this guide, search for rawxml and click on "XML Variable API" topic and refer the "Getting the value of a node of an Xml Variable" section.  That should give you hint on how to get the xmlvariable (SFFormData) value.  You can follow the similar approach to read the SFFormData.

Thanks, Sri

Srinivasa Rao Pentapati

Post #1599
Posted Tuesday, September 29, 2009
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Thursday, January 12, 2012
Posts: 93, Visits: 121
Attached snapshot for your reference.

  Post Attachments 
XML Variable API.JPG (160 views, 107.06 KB)
Post #1600
Posted Wednesday, September 30, 2009
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Tuesday, May 17, 2011
Posts: 15, Visits: 100
Thanks a lot!  I will give this a try tomorrow.  This is what I was looking for.    I guess I just a kick to get started.
Post #1601
Posted Thursday, October 01, 2009
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Tuesday, May 17, 2011
Posts: 15, Visits: 100
Hi Rao

What would be causing this error?  I've tried to make my app as simple as possible and I'm just not getting what's going on.

! - Error while running the Action or Handling the event- MyLogger1 for Executio
nDetailsID=38, - Error while loading action handler class -Logger.New, Assembly=
C:\Program Files\XtenderSolutions\Content Management\ApplicationXtender Workflow
 Manager\SOA\Logger.dll, ApplicationName - AXDemo, WorkflowName - Test, Executio
nId - 13, ExecutionDetailsId - 38, Module - C:\WINDOWS\assembly\GAC_MSIL\Workflo
w.NET.NET2\3.5.0.0__c932f724c984e915\Workflow.NET.NET2.dllC:\WINDOWS\assembly\GA
C_MSIL\Workflow.NET.NET2\3.5.0.0__c932f724c984e915\Workflow.NET.NET2.dll , Assem
bly version = 3.5.9027.2, FileName - RunTime.cs, Source -    at Workflow.NET.Eng
ine.RunTime.PerformActionThread(Object Params), mke01-ricoh-02, Process - WFEngi
ne.NET2, 10/1/2009 5:16:50 PM

my class is attached as is the xml in the actions.xml file.  sorry, i'm a vb programmer.  i'm just trying to write data to the workflow log console.  Again, i'm new to Skelta so sorry that this is very basic.

  Post Attachments 
help.txt (150 views, 1,018 bytes)
actions.txt (168 views, 305 bytes)

Post #1612
Posted Wednesday, October 07, 2009
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Thursday, June 02, 2011
Posts: 90, Visits: 150
Looks like the Handler class cobfigured in the Action.xml is wrong.
It should be in format namespace.classname. You have used logger.New, however the in the code your namespace is logger2. Make neccessary changes and try again.

Regards,

Moderator
Post #1618
Posted Wednesday, October 07, 2009
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Tuesday, May 17, 2011
Posts: 15, Visits: 100
You are correct.  That's exactly what it was.  I figured that out late in the day yesterday.  I guess it's just my stumbling box learning how to use the software.  So far everyone's been quite helpful and I'm making good progress with my plug-in.  Thanks for all your help!

Take care,
Mike

Post #1619
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
-
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.

All times are GMT -5:00, Time now is 4:56am

 
Execution: 0.156.10 queries.Compression Enabled.

Copyright © 2002 - 2009 Skelta Software. All rights reserved. Tel: 1 (678) 306 4110 | Email:sales@skelta.com
Skelta - A BPM Workflow Software Company