Submit for Approval in XML Forms
Hi Experts,
I have created a News Application using XML Form Builder. Once I create any news based on this form builder, I need to submit this news item for approval. I have configured the approval process for that particular KM Folder.
I need submit for approval option in News Explorer/News Admin iView. How can I achieve this? Do, I need to change the layout set properties or in XML Form Builder application itself.
Help me in this regard.
Thanks & Regards,
Art
Hi Art,
> Do I need to change the layout set properties or in XML Form Builder application itself.
You should extend the command set used on the resource renderer (the resource renderer is defined in the layout set), using the approval command group, I don't know the exact name, but it will be something with "approval" or "statemanagement" in it...
Hope it helps
Detlev
Similar Messages
-
Submit for approval in KM - automatically?
Hi guys!
When I create document in folder, where Approval process is enabled , I have to click on "Submit for approval", when I want to send document for approval.
Is it possible to send it for approval automatically? SO I create document and it is automatically sent to approvers inbox..
Thanx for answer!
PeterPeter,
I think without coding no way.
You can create a repository service which will listen to events like <b>ResourceEvent.CREATE_CHILD</b>. When the event is caught the repository service will submit the resource for approval. For more info about repository services just search the SDN (or let me know).
Romano
PS: does my reply to this <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=261413">Thread: mailto link wanted in XML form app</a> helped? If so, please close it - it will help others in searching for answers to their questions... -
Repository Service for Auto Submit for Approval
Hi all,
Can anyone help me with the creation of a Repository Service to auto 'submit for approval' any document created.
My main problem is in two methods:
1) removeRepositoryAssignment(IRepositoryManager mgr)
In some samples, I saw always this code line:
mgr.getEventBroker().unregister(this, ResourceEvent.CREATE_CHILD);
But in my project the unregister method doesn't have that parameters
2) received(IEvent event)
I need some help to know what code should I put
The remaining steps, I think I can handle by myself.
Many Thanks,
LuisHi,
1) make sure you use com.sapportals.wcm.repository.manager.IRepositoryManager, use the JAR (bc.rf.framework_api.jar from the \usr\sap\XXX\JCXX\j2ee\cluster\serverX\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.netweaver.bc.rf\lib folder) from the portal you are willing to develop to make sure you have the actual libraries.
2) in this method you have to catch the events that creates the resource (ResourceEvent.CREATE_CHILD) - later you will see, that you have to handle also the CHANGE events and so on. When you have the event, get the resource - for CREATE_CHILD it is
event.getResource()
Now you can handle the submit for approval by yourself.
Romano -
Skipping ' submit for Approval '
Hi ,
I am setting up a document workflow process in KM . I have a requirement as follows ..
Once a document is uploaded into the folder ( which is assigned with set of approval steps and
users ) , I need to send all the documents in that folder for approval process with out Approver admin manually clicking ' submit for Approval ' button . Is this possible by configuration or we need to write some extra code .
Any help is appreaciated .
Thanks
AneezHi Aneez,
yes you will need to write some extra code. The concept would be like that:
1. you will have to implement an eventlistener which will be called, if a document is created or uploaded.
2. this event listener has to call the API of the statemanagement service in order to submit the document.
3. For each repository of interst, you can register your event listener using the getEventBroker method.
There you have to specify the events, you are intersted in.
Details:
1. class MyEventListerner implements IEventReceiver{
private static IResourceEvent CREATE_CHILD_EVENT = new ResourceEvent(ResourceEvent.CREATE_CHILD, null);
public void received(IEvent event) {
event.isLike(CREATE_CHILD_EVENT)) {
IResource resource = (IResource)event.getParameter();
this.submitResource(resource);
private void submitResource(IResource resource){
// get the statemanagement service from the resource
IRepositoryServiceFactory factory = ResourceFactory.getInstance().getServiceFactory();
IStatemanagementManager statemanagement =
(IStatemanagementManager)factory.getRepositoryService(resource, IWcmConst.STATEMANAGEMENT_SERVICE);
IStatemanagementResource sResource =
statemanagement.getStatemangementResource(resource)
IResourceTransition transition = sResource.getTransition("lbl.submit")
// if everything is correct than transition is not null
if (transition != null) transition.execute();
Please keep in mind, that this is only a scatch how it may work. You have to ensure, that the statemanagement is enabled for the parent folder of the resource. Otherwise, the transition may be null or not executable.
I hope this helps.
regards
Andreas -
Hi,
I have written an WDP Application which creates a resource in KM and subsequently <b>"Submits it for approval".</b>
Now the problem is, all the users can create the content, but only user having a <b>Content Management</b> role can perform the submit for approval action. I have given the content admin the application role. We can see the resource getting created in the KM folder for all the users. But only Content admin can submit.
I have given all the reqd. users the full control over the folders.
Now what could be the problem???!!!!!
Helpful answers will be rewarded
Thanks in advance
BPHi,
We had to write this code. It's a button that allow you to submit a document and change acl permission.
Patricio.
public IRenderingEvent execute(IResource res, Event event) throws WcmException {
if (event instanceof ConfirmEvent) {
String pepe = "";
ConfirmEvent cce = (ConfirmEvent) event;
pepe += " a1 ";
if (ConfirmEvent.CHOICE_YES.equals(cce.getChoice())) {
IRepositoryServiceFactory repositoryServiceFactory = ResourceFactory.getInstance().getServiceFactory();
IStatemanagementManager statemanagementManager =
(IStatemanagementManager) repositoryServiceFactory.getRepositoryService(res, IWcmConst.STATEMANAGEMENT_SERVICE);
IStatemanagementResource sResource = statemanagementManager.getStatemangementResource(res);
IResourceTransition resourceTransition = sResource.getTransition("lbl.submit");
if (resourceTransition != null) {
resourceTransition.execute();
try {
ISecurityManager sm = res.getRepositoryManager().getSecurityManager(res);
pepe += " a7 ";
if (sm != null && sm instanceof IAclSecurityManager) {
IAclSecurityManager asm = (IAclSecurityManager) sm;
IResourceAclManager ram = asm.getAclManager();
IResourceAcl ra = ram.getAcl(res);
if (ra == null) {
IUMPrincipal administradores = WPUMFactory.getGroupFactory().getGroup("Loyal ISO Administrador");
IUMPrincipal publicadores = WPUMFactory.getGroupFactory().getGroup("Loyal ISO Publicador");
ra = ram.createAcl(res);
ra.addOwner(administradores);
ra.addOwner(publicadores);
IUMPrincipal everyone = WPUMFactory.getGroupFactory().getGroup("Everyone");
IResourceAclEntryList rel = ra.getEntries();
IResourceAclEntryListIterator it = rel.iterator();
while (it.hasNext()) {
IResourceAclEntry entry = it.next();
if (entry.getPrincipal().equals(everyone)) {
ra.removeEntry(entry);
} catch (AclPersistenceException e) {
return new InfoEvent(Status.ERROR, "Error en el cambio de permisos");
} catch (ResourceException e) {
System.out.println("I raised a ResourceException " + e.getMessage());
return new InfoEvent(Status.ERROR, "Error en el recurso");
} catch (UserManagementException e) {
System.out.println("I raised a UserManagementException" + e.getMessage());
return new InfoEvent(Status.ERROR, "Error en el manejo de usuarios");
return new InfoEvent(Status.OK, "Done !");
} else if (ConfirmEvent.CHOICE_NO.equals(cce.getChoice())) {
return ConfirmComponent.onNo(event, res.getContext().getLocale());
} else if (ConfirmEvent.CHOICE_CANCEL.equals(cce.getChoice())) {
return ConfirmComponent.onCancel(event, res.getContext().getLocale());
return new InfoEvent(Status.ABORT, "Aborted."); -
Error at submit for approval in partner program
Hi All,
I am created the partner program in r12 and when i click the submit for approval i receive this error
Start :Item Type : AMSGAPP Item key : CONCEPTPRGT140282
Invalid Workflow Role for Approver
send me the solution for it as soon as possible
Thanks
Edited by: user12235518 on Mar 8, 2012 4:36 AMuser12235518 wrote:
Hi All,
I am created the partner program in r12 and when i click the submit for approval i receive this error
Start :Item Type : AMSGAPP Item key : CONCEPTPRGT140282
Invalid Workflow Role for Approver
send me the solution for it as soon as possiblePlease see if these docs help.
Budget Allocation or Offer Approval Error: "Invalid Workflow Role for Approver" [ID 414053.1]
Invalid Workflow Role For Approver Error When Trying To Approve A Deliverable In Marketing [ID 181484.1]
Unable To Approve Quota With Error : AMSGAPP Invalid Workflow Role for Approver [ID 422910.1]
Error when Generating Invite List of Oneoff Event [ID 266349.1]
Errors Occuring During Claim Approval [ID 1361361.1]
Thanks,
Hussein -
Submit for Approval throws error
Hi Experts,
we are facing a strange error with the approval workflow. Once the user select "submit for approval" from Details the following error is displayed.
Could not execute command 'com.sapportals.wcm.rendering.uicommand.cm.UIStatemanagementCommand'
Somebody knows how this problem occurs and can be fixed?
Thanks and Regards,
Ingo TaraskeHi Ingo
Also do check the monotoring section for KM Components and in the "System Configuration" for KM, if you see any warning or error message while navigating in Global Services or User Interfaces or some other section, sometimes it could have also lead to error if it related to "Submit for appoval" action.
As Rafael said, hot deployment of KM components is mostly the reason for this. System restart is the best options if above suggestions already hold good.
Thanks
Deepak -
How to set minimum height size for an empty XML Form iview
Hi,
I'm trying to configure the minimum height size of an XML Form iview without sucess. Even when there is no content to show, iview height size is around 80 pixels. When there is content the automatic configuration works fine and the iview is resized properly.
The iview has automatic size and the minimum size for automatic is with 5 pixels...
Any ideas?
Thanks,
MarceloHi,
I'm trying to configure the minimum height size of an XML Form iview without sucess. Even when there is no content to show, iview height size is around 80 pixels. When there is content the automatic configuration works fine and the iview is resized properly.
The iview has automatic size and the minimum size for automatic is with 5 pixels...
Any ideas?
Thanks,
Marcelo -
Api call for 'submit for approval'
would like to be able to use the content management event system to watch for incoming files. when a new file comes in i want to set some attributes based on the payload before it is submitted for approval. i am having problems finding the proper procedure to automatically submit the file for approval once i set the attribute values (which must be done while the file is in draft mode)
is that possible?If the target node for your operation is a sibling, I believe you're going to have to pass the parent node of the sibling into the AddNode() API call when this operation occurs within a version. Note that copyNodesAcrossVersions is a new method that has a copyAsSibling parameter, but AddNode() does not.
Edited by: Naren Truelove on Nov 12, 2012 3:12 PM
...grammatical correction... -
I would like to be able to use the content management event system to watch for incoming files. when a new file comes in i want to set some attributes based on the payload before it is submitted for approval. i am having problems finding the proper procedure to automatically submit the file for approval once i set the attribute values (which must be done while the file is in draft mode)
is that possible?sorry. i posted this in the wrong forum.
-
Error in Km when submit for approval.
Hi
In Km once in a while we are having error when we submit a document to be approval. If I restart the application, the error will disappear. This is the error log I receive when I submit. Anybody have an idea.
Thank you
Could not create command with alias com.sapportals.wcm.rendering.uicommand.cm.UIStatemanagementCommand and classname com.sapportals.wcm.rendering.uicommand.cm.UIStatemanagementCommand:java.lang.NullPointerException
at com.sapportals.wcm.rendering.uicommand.UICommandFactory.getTextAttributesForCommand(UICommandFactory.java:1272)
at com.sapportals.wcm.rendering.uicommand.UICommandFactory.setPropertiesForCommand(UICommandFactory.java:372)
at com.sapportals.wcm.rendering.uicommand.UICommandFactory.createExecCommand(UICommandFactory.java:421)
at com.sapportals.wcm.rendering.uicommand.UICommandFactory.decodeTargetCommand(UICommandFactory.java:620)
at com.sapportals.wcm.rendering.control.cm.MenuBarControl.onExecute(MenuBarControl.java:319)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sapportals.wdf.stack.Control.dispatchHtmlbEvent(Control.java:386)
at com.sapportals.wdf.WdfEventDispatcher.dispatch(WdfEventDispatcher.java:176)
at com.sapportals.wdf.WdfCompositeController.onWdfEvent(WdfCompositeController.java:539)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sapportals.htmlb.page.DynPage.doProcessCompositeEvent(DynPage.java:204)
at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:142)
at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:115)
at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
at com.sapportals.wcm.portal.component.base.ControllerComponent.doContent(ControllerComponent.java:77)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
at java.security.AccessController.doPrivileged(Native Method)
at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)Hi Luc,
I'm having this same problem in our company.
Our version is also NW2004s SPS11.
Do you still remember what patch you applied to make it work?
It'd be very useful!
Kind regards,
Simone
Message was edited by:
Simone Teshirogui -
Reporting and analysis tools for Designer ES XML form responses
What are recommended applications or tools to use in order to analyze the XML responses from Livecycle Designer forms?
I am currently using Excel and find it cumbersome and requires a lot of repitition in order to import the individual files.
Any suggestions, besides purchasing the server product?
Thank you.Hi,
Without going down the server route, have you tried using Acrobat.com to distribute the form? It gives some reasonable tools:
Also if you open Acrobat and go to the Forms > Manage Form Data menu, you can select 'Merge data files into spreadsheet'.
I haven't used any third party tools to deal specifically with XML and Excel.
Hope that helps, in some small way,
Niall -
Hi,
I am implementing XML forms with approval process.UI have created a news. and it goes to the folder /documents/news2
For Folder "News2" I have permission to one USER "Preeti " as approver.Everyone is Read access
Service Permissions that "Preeti" has Full control.and evryone "Unsubscribe only"I could not see option no service
Approval process has step of approving from user "Preeti"
I could now see the edit delete approval in the iview but for the authors and users with system admin role also the iView has option of Submit for approval and Skip approval.
Also I tried creating new user and for that the NEwsApproval iView does not show the link to create news.as shown in your fig.
So I want that the author only should see teh link submit approval and not skip approval.All other users even though a system admin but not a approver should not see that Submit approval.
Please request you to help me.Hi Preeti,
To see the 'New' link the user should have write access to that folder. Only then they can create xml items using the form.
If you dont want to show the skip approval link to any one including admin, you can advance copy the layout set "NewsExplorer" and remove the command from resource command group.
The approver also gets the submit for approval option and if he selects it, the document is sent to his own UWL for approval, if he is the only approver, otherwise sent to the next level approver.
Regards
Ramesh kotagiri -
Calling the Adobe form in a workflow step for Approval
Hi All,
We are creating a PCR scenario using Adobe forms for "Employee seperation". This form will require 7 subsequent approvals from various agents which is to be handled using a workflow.
I had gone through the ISR cookbook and managed to create a scenario. I have also assigned it to a PDF form and a dummy workflow. Now from my PCR iview i am able to submit the form for my scenario which also triggers the dummy workflow(through the BUS7051-CREATED event).
Right now this dummy workflow just sends a mail(by sendmail step) to the first approver. Now i want this workflow to send a workitem to the first approver for approval of this form which will have to appear in his UWL. When the approver double clicks on the workitem in UWL he should be able to view the form along with Approve/Reject/Cancel buttons. I am not aware how to do this. My questions are,
<b>Is this handled by a decision step or an activity?
If it is an activity step which Task/Business object method is used to handle this?
If it is a decision step how do we make the Adobe form also to be displayed along with approve/Reject buttons?</b>
We are using ECC5.0 and EP6.0.
Thanks in advance for any help.
Prasath NHi Rajasekhar,
The UWL issue has been resolved now and i am receiving the workitems in my UWL. But i am getting the following error when i am trying to execute the workitem from my UWL.
<b>Service cannot be reached
What has happened?
URL http://xxxxxxxx.xxxx.xxx.xxx:8000/webdynpro/dispatcher/sap.com/pcui_gp~isr/IsrFormApprove call was terminated because the corresponding service is not available.
Note
The termination occurred in system xxx with error code 404 and for the reason Not found.
The selected virtual host was 0 .
What can I do?
Please select a valid URL.
If you do not yet have a user ID, contact your system administrator.
ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:DALSPHSB_HSB_37-v:0-s:404-r:Notfound
HTTP 404 - Not found
Your SAP Internet Communication Framework Team
</b>
I have done the following configuration settings in SWFVISU transaction :
Task : TS500000075
Visualization Type : WebDynpro Java
visualization parameter: Application
visualization Value: IsrFormApprove
visualization parameter: Package
visualization Value: sap.com/pcui_gp~isr
Is there anything else that i have missed out in the configuration?
Message was edited by:
prasath natesan
Message was edited by:
prasath natesan -
Hi All,
We are having few XML forms in landscape.There is a requirement to put some text messages in the existing form.
For example if i click on submit button , it must throw a message that your form has sent for approval.I have forms builder and opened the existing form.Have created a copy of this by saveas option.i have clicked on submit button in EDIT FORM and the properties of submit are
class Button
Caption Submit
Action Display
Style Emphasize
Description
Alignment
Vert Alignent
X
Y
I tried to change the action from save to ( Link to source text, display,edit ,create).
I got struck here .
Please let me know the procedure to edit this form and put the message when i click on submit button.
I need this message after validationg the form input fields.
Thanks in advance..
Sridar.To brief my requirement i have an existing form where i need to put some popup message after clicking submit button.the question here is
1.Where do i find the source code for this ( navigation steps please)
2.What are the steps i follow in changing the existing forms.
3.is it possible to put a popup in xml form
thanks in advance..
Maybe you are looking for
-
Not playing correctly in itunes
hi, I'm having some trouble with itunes that has only started today. I try to play songs and upon double clicking they do not begin to play, even when clicking the play button at the top still no reaction. All of these songs now appear to have "album
-
My ipod 5th gen won't let me adjust volume when headphones are plugged in, but when they are not I can adjust the volume on the speaker. How do I fix this?
-
How do I add a title to my table of contents in Pages?
I am attempting to write a research paper using the paragraph styles and headings features. I have also added a table of contents, which looks great and allows me to jump to each section of the paper. HOWEVER, I can't seem to be able to title that
-
Launch Error - This file cannot be launched
Hi all, I renamed a class file in a flash build and now every time I try to debug my project (cmd+F11) I get an error window saying Launch Error - This file cannot be launched. I have tried wiping the project and moving the files in to a new one and
-
Unable to install download assistant for a trial version
I need to install a trial version of Adobe Acrobat Standard XI. It downloads the assistant but the assistant will not run or install. I am using a Wiindows Vista OS.