rrawson Honored Contributor.
Honored Contributor.
433 views

Start Workflow Activity Error

Using one workflow to provide a simplified api to start a more complex one. The idea was to not require unneeded fields to be entered but it seems I still need the start Workflow Activity to fill in default values in the fields.

My problem appears to be that I still have some fields I cannot successfully populate; I am getting a data item error in the start Workflow Activity. Likely culprit is the date fields or.maybe the HTML fields that shouldn't be there but keep showing up i the post activity. Asking for debugging ideas...thx much
Labels (1)
0 Likes
4 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Start Workflow Activity Error

I use such an approach a lot. It can make complex workflow systems much
easier.
These 2nd level workflows (or 'service Workflows' how I call them) can
often be used like shared subroutines that do common tasks for other
workflows.

All fields that are used in the 2nd workflows's post-activity mapping
must be passed when calling it with SOAP or from a "Start Workflow"
activity.

It doesn't matter if the fields are hidden or required - you need to
pass something, e.g., an empty string. Treat it like some "Default Value".

In many cases it is easier to remove such fields from the post activity.
Such fields do not "keep showing up" by themselves unless you tell
Designer to "Map All" (not a good idea in your case). Clean up manually
and delete what's not essential.

In other cases you may want to add logic to the subsequent
flow/approvals to handle/ignore/recalculate such default values
depending on your business logic.

Wolfgang


On 19/06/2018 06:14, rrawson wrote:
>
> Using one workflow to provide a simplified api to start a more complex
> one. The idea was to not require unneeded fields to be entered but it
> seems I still need the start Workflow Activity to fill in default values
> in the fields.
>
> My problem appears to be that I still have some fields I cannot
> successfully populate; I am getting a data item error in the start
> Workflow Activity. Likely culprit is the date fields or.maybe the HTML
> fields that shouldn't be there but keep showing up i the post activity.
> Asking for debugging ideas...thx much
>
>

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Start Workflow Activity Error

On 6/18/2018 10:14 PM, rrawson wrote:
>
> Using one workflow to provide a simplified api to start a more complex
> one. The idea was to not require unneeded fields to be entered but it
> seems I still need the start Workflow Activity to fill in default values
> in the fields.
>
> My problem appears to be that I still have some fields I cannot
> successfully populate; I am getting a data item error in the start
> Workflow Activity. Likely culprit is the date fields or.maybe the HTML
> fields that shouldn't be there but keep showing up i the post activity.
> Asking for debugging ideas...thx much
>
>


Export the PRD as XML, base64 decode the base64 pieces, check the data
item mapping related to the Start activity. I've seen bugs before where
fields change type and stay listed there as mapped in the post-activity,
that will tell you which fields are needed even when they should not be.
0 Likes
sma2006 Outstanding Contributor.
Outstanding Contributor.

Re: Start Workflow Activity Error

Hi,
I'm also trying to start a secondary workflow from a primary one with the "start workflow" activity , but I do not see how to populate secondary workflow fields.

In the primary workflow, the data-item mapping (for start workflow activity) is "read-only" , no way to add flowdata .

What I'm doing wrong ?

(The secondary workflow starts properly, anyway...)

thanks

Sylvain
0 Likes
sma2006 Outstanding Contributor.
Outstanding Contributor.

Re: Start Workflow Activity Error

Got it from another thread, the fields must be mapped in post activity of the start activity in the secondary workflow.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.