Missing view ID - Checkout view
Hi Friends,
I am trying to check out view.
<Action id='0' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='checkoutView'/>
<Argument name='viewId' value='$(accountId)'/>
<Argument name='type' value='User'/>
<Variable name='view' value='thomas'/>
<Return from='view' to='user'/>
</Action>
I am getting error
"com.waveset.util.WavesetException: Missing view id. "
Can some guru throw some exception what am I doing wrong.
Thx
[605 byte] By [
gvivek99a] at [2007-11-27 6:57:56]

# 1
Try this out:
<Action id='0' name='CheckOut User' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='checkoutView'/>
<Argument name='type' value='User'/>
<Argument name='id' value='$(accountId)'/>
<Argument name='subject' value='configurator'/>
<Return from='view' to='userview'/>
</Action>
Two things to coinsider here:
1.) the accountId should not be null
2.) You are passing 'view' argument' as 'thomas'. That is not required.
Let me know if it works...
# 3
Well ... You do not have to hard code the accountId. If you see below, I am using a variable named "enduserId", whose value can be set to "thomas" or any other user including the WF_CASE_OWNER.
<Action id='0' name='CheckOut User' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='checkoutView'/>
<Argument name='type' value='User'/>
<Argument name='id' value='$(enduserId)'/>
<Argument name='subject' value='configurator'/>
<Return from='view' to='userview'/>
</Action>
Once you get the hold of "userview", you can change the email value using:
userview.account[Lighthouse].email = NEWVALUE
(for changing IdM Email ID)
or
userview.accounts[RESOURCENAME].email = NEWVALUE
(for changing email Id on end resource)
Once you check in this view, you will see the changes been applied.
# 4
I did same as you wrote and I debugged my code too.
Some how checkin view is now working
I changed to user.global.firstname and user.global.lastname so that I can update firstname and lastname. But check view is not working some how.
Can you throw somelight
Here is my workflow
<!-- MemberObjectGroups="#ID#Top" createDate="Sat Jun 09 22:13:26 PDT 2007" extensionClass="WFProcess" id="#ID#CB00E29B1B211E5E:-2843E643:1131339CE33:-7FC9" name="Check Out - Check in User View" visibility="runschedule"-->
<TaskDefinition id='#ID#CB00E29B1B211E5E:-2843E643:1131339CE33:-7FC9' name='Check Out - Check in User View' lock='Configurator#1181541302359' creator='Configurator' createDate='1181452406875' lastModifier='Configurator' lastModDate='1181541002343' lastMod='150' 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='Check Out - Check in User View' maxSteps='0'>
<Activity id='0' name='start'>
<Transition to='Checkout View'/>
<WorkflowEditor x='43' y='10'/>
</Activity>
<Activity id='1' name='Checkout View'>
<Comments>Get an updatable view.</Comments>
<Action id='0' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='checkoutView'/>
<Argument name='viewId' value='$(accountId)'/>
<Argument name='type' value='User'/>
<Argument name='id' value='takiya'/>
<Variable name='view' value='takiya'/>
<Return from='view' to='user'/>
</Action>
<Transition to='Change user name'/>
<WorkflowEditor x='123' y='9'/>
</Activity>
<Activity id='2' name='Change user name'>
<Action id='0'>
<expression>
<block>
<set>
<ref>user</ref>
<s>user.global.lastname</s>
<s>lala</s>
</set>
<set>
<ref>user</ref>
<s>user.global.firstname</s>
<s>wala</s>
</set>
</block>
</expression>
<Return from='user' to='user'/>
</Action>
<Transition to='Checkin View'/>
<WorkflowEditor x='237' y='10'/>
</Activity>
<Activity id='3' name='Checkin View'>
<Comments>Commit an updated view.</Comments>
<Action id='0' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='checkinView'/>
<Argument name='view' value='user'/>
</Action>
<Transition to='end'/>
<WorkflowEditor x='348' y='11'/>
</Activity>
<Activity id='4' name='end'>
<WorkflowEditor x='425' y='10'/>
</Activity>
</WFProcess>
</Extension>
<MemberObjectGroups>
<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
</MemberObjectGroups>
<Properties>
<Property name='editorOriginalName' value='Check Out - Check in User View'/>
</Properties>
</TaskDefinition>
# 6
Hi,
<Activity id='3' name='Checkin View'>
<Comments>Commit an updated view.</Comments>
<Action id='0' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='checkinView'/>
<Argument name='view' value='$(user)'/>
</Action>
<Transition to='end'/>
<WorkflowEditor x='348' y='11'/>
</Activity>
while checkin you need to pass the view (user) as a variable.
You can try this.
Thanks