All 1 entries tagged Workflow

View all 2 entries tagged Workflow on Warwick Blogs | View entries tagged Workflow at Technorati | There are no images tagged Workflow on this blog

June 17, 2014

FIM EnumerateResource returns "nothing" when TotalResultsCount = 1

Writing about web page http://www.wapshere.com/missmiis/getting-something-back-from-the-enumerateresourcesactivity

After adding workflow elements to enumerate an object, the ResorceType that gets returned is "nothing", however TotalResultsCount is 1 or more.

What's going on?

I'd added three separate enumerations to a workflow, and they worked fine. I added a fourth (enumerating a /Person resource) it was returning blank, despite the xpath being correct.

My standard set of workflow modules for doing an enumerate is normally this;

  • Code: prepareToEnumerate
  • EnumerateResource: enumerate
  • Hidden: Iteration handler
  • Code: Deug logging

There are two sets of code associated with a workflow;

  • MyWorkflow.vb - contains the code executed by the workflow objects entered into the designer
  • MyWorkflow.design.vb - is the saffolding for the designer, and holds metadata about your code

The modules I'd created in the designer previously seem to have been added just fine to the designer.vb file. However the last one wasn't - there was no reference to my hidden iteration handler, so I added it manually using the excelent guide at missmiis's blog.

The process she describes adds-in a reference to your hidden iterator code, and manually adds your iterator code as a handler to the EnumerateResource code. The design.vb code contains comments warning about making changes - seems like they can be safely ignored.

There's lots of stuff on the web that implies all enumerateResource code that requires an iterator needs to be manually added to the design.vb code. I'm still convinced that the first few enumerates I added worked automatically, and that maybe some other aspect (like the enumerate object was added to an if-else block) prevented it being added. I'll post an update once Ive experimented a little more.


February 2023

Mo Tu We Th Fr Sa Su
Jan |  Today  |
      1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28               

Search this blog

Tags

Galleries

Blog archive

Loading…
RSS2.0 Atom
Not signed in
Sign in

Powered by BlogBuilder
© MMXXIII