Create User from the end user pages

I tried to create a user from a end user page and I get this error:

com.waveset.util.WavesetException: WorkflowServices.provision: no view

Anybody knows where the error is?

Thanks!

My workflow:

<!-- MemberObjectGroups="#ID#Top" createDate="Wed May 30 10:36:29 CEST 2007" extensionClass="WFProcess" id="#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FDA" name="PRUEBA" visibility="runschedule"-->

<TaskDefinition id='#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FDA' name='PRUEBA' lock='Configurator#1181667176671' creator='Configurator' createDate='1180514189312' lastModifier='Configurator' lastModDate='1181666876671' lastMod='129' taskType='Workflow' executor='com.waveset.workflow.WorkflowExecutor' suspendable='true' syncControlAllowed='true' execMode='sync' execLimit='0' resultLimit='0' resultOption='delete' visibility='runschedule' progressInterval='0'>

<Extension>

<WFProcess name='PRUEBA' maxSteps='0'>

<Activity id='0' name='start'>

<Transition to='activity1'/>

<WorkflowEditor x='88' y='120'/>

</Activity>

<Activity id='1' name='end'>

<WorkflowEditor x='457' y='89'/>

</Activity>

<Activity id='2' name='activity1'>

<ManualAction id='0' name='prueba' syncExec='true' itemType='wizard'>

<WorkItemName>

<ref>probando voy</ref>

</WorkItemName>

<FormRef>

<ObjectRef type='UserForm' id='#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FC5' name='PRUEBAForm'/>

</FormRef>

</ManualAction>

<Transition to='Create View'/>

<WorkflowEditor x='177' y='266'/>

</Activity>

<Activity id='3' name='Provision'>

<Action id='0' process='Provision'>

<Variable name='op' value='provision'/>

</Action>

<Transition to='end'/>

<WorkflowEditor x='380' y='305'/>

</Activity>

<Activity id='4' name='Create View'>

<Comments>Initialize a new view.</Comments>

<Action id='0' application='com.waveset.session.WorkflowServices'>

<Argument name='op' value='createView'/>

<Argument name='type' value='User'/>

<Argument name='viewId' value='User'/>

</Action>

<Transition to='Provision'/>

<WorkflowEditor x='247' y='416'/>

</Activity>

</WFProcess>

</Extension>

<MemberObjectGroups>

<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>

</MemberObjectGroups>

<Properties>

<Property name='editorOriginalName' value='PRUEBA'/>

</Properties>

</TaskDefinition>

[3009 byte] By [armibe2a] at [2007-11-27 7:14:20]
# 1
Any ideas please.
armibe2a at 2007-7-12 19:04:41 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
Can you put your form here too? I can take a lookThx
gvivek99a at 2007-7-12 19:04:41 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3

Hi gvivek99,

I have put a link in the 揂nonymous User Menu?br>

<Field name='Test'>

<Display class='Link'>

<Property name='URL' value='user/anonProcessLaunch.jsp?newView=true'/>

<Property name='id' value='PRUEBA'/>

</Display>

</Field>

This link start "PRUEBA" Workflow (see my first post).

This workflow call a ManualAction and open PRUEBAForm. In this form I request the accountID, firstname and lastname. But when I submit it, I get the next error:

com.waveset.util.WavesetException: WorkflowServices.provision: no view

<!-- MemberObjectGroups="#ID#Top" extensionClass="Form" id="#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FC5" lastMod="247" lastModifier="Configurator" name="PRUEBAForm"-->

<Configuration id='#ID#48FDDE54A046A13F:-14C2A04D:112DBE4AB3D:-7FC5' name='PRUEBAForm' lock='Configurator#1182147751359' creator='Configurator' createDate='1180518677968' lastModifier='Configurator' lastModDate='1182147451343' lastMod='247' wstype='UserForm'>

<Extension>

<Form name='PRUEBAForm' noDefaultButtons='true' objectLocationID='objectName=PRUEBAForm&amp;isBegin=true&amp;objectPath=0&amp;objectType=UserForm'>

<Display class='EditForm'/>

<Field name='waveset.accountId'>

<Display class='Text'>

<Property name='title' value='_FM_ACCOUNT_ID'/>

<Property name='size' value='32'/>

<Property name='maxLength' value='128'/>

<Property name='required'>

<Boolean>true</Boolean>

</Property>

</Display>

</Field>

<Field name='global.firstname'>

<Display class='Text'>

<Property name='title' value='_FM_FIRSTNAME'/>

<Property name='size' value='32'/>

<Property name='maxLength' value='128'/>

</Display>

</Field>

<Field name='global.lastname'>

<Display class='Text'>

<Property name='title' value='_FM_LASTNAME'/>

<Property name='size' value='32'/>

<Property name='maxLength' value='128'/>

<Property name='noNewRow' value='true'/>

</Display>

</Field>

<Field name='global.fullname'>

<Expansion>

<cond>

<and>

<ref>global.firstname</ref>

<ref>global.lastname</ref>

</and>

<concat>

<ref>global.firstname</ref>

<s> </s>

<ref>global.lastname</ref>

</concat>

</cond>

</Expansion>

</Field>

<Field name='nextCancelButtons'>

<Field name=':variables.formButton' button='true'>

<Display class='Button'>

<Property name='label' value='Next'/>

<Property name='value' value='Submit'/>

<Property name='command' value='Save'/>

</Display>

</Field>

<Field name=':variables.formButton' button='true'>

<Display class='Button'>

<Property name='label' value='Cancel'/>

<Property name='value' value='Cancel'/>

<Property name='command' value='SaveNoValidate'/>

</Display>

</Field>

<Field name=':complete'>

<Default>

<s>true</s>

</Default>

</Field>

</Field>

</Form>

</Extension>

<MemberObjectGroups>

<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>

</MemberObjectGroups>

<Properties>

<Property name='editorOriginalName' value='PRUEBAForm'/>

</Properties>

</Configuration>

Thanks

armibea at 2007-7-12 19:04:41 > top of Java-index,Web & Directory Servers,Directory Servers...
# 4
Heeeelp!! Thanks in advance.
armibe2a at 2007-7-12 19:04:41 > top of Java-index,Web & Directory Servers,Directory Servers...
# 5

I solved the 'WorkflowServices.provision: no view' problem.

I needed to add at 'Provision' process:

<Variable name='user' value='configurator'/>

and also I needed to modify the form and add this fields:

waveset.organization

password.password

...

Now, the workflow's execution finishes successfully, no errors... but nothing happened.

The user doesnt appear at the 'list accounts' tab. Looks like the user isnt created.

Any ideas?

armibe2a at 2007-7-12 19:04:41 > top of Java-index,Web & Directory Servers,Directory Servers...
# 6
Hi armibe2, Sorry for late reply. Problem lies in your workflow.You are accepting user data and creating view. Thats not correct . Create view first and then accept data. It will work.ThxV
gvivek99a at 2007-7-12 19:04:41 > top of Java-index,Web & Directory Servers,Directory Servers...