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...

ahluwala at 2007-7-12 18:35:21 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2

Hi Ahulawal,

I need to check out view for thomas or any other user existing in respository. How to pass user. Currently I am testing though hard coding one user.

One more thing if you know. I want to change his email id. For that I created another action "Change user id". But I am not sure who to access email id from check out view.

If you through some light I will be greatful

Thx

gvivek99a at 2007-7-12 18:35:21 > top of Java-index,Web & Directory Servers,Directory Servers...
# 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.

ahluwala at 2007-7-12 18:35:21 > top of Java-index,Web & Directory Servers,Directory Servers...
# 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>

gvivek99a at 2007-7-12 18:35:21 > top of Java-index,Web & Directory Servers,Directory Servers...
# 5
Can any one throw some more light on it?Thx
gvivek99a at 2007-7-12 18:35:21 > top of Java-index,Web & Directory Servers,Directory Servers...
# 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

dortmund_developera at 2007-7-12 18:35:21 > top of Java-index,Web & Directory Servers,Directory Servers...