Get Authorization Workflow status
Hello Everyone,
Does someone know how can i get the current status from an authorization workflow using some API? I need to code a method to validate how many documents have been authorized. on a specific folder in km.
Thanks for any help.
Regards.
Hi,
A Sample Code, which uses StateManagement API.....
IResourceFactory resFactory = ResourceFactory.getInstance();
IRepositoryServiceFactory repServiceFactory = resFactory.getServiceFactory();
IStatemanagementManager stateMgr = (IStatemanagementManager) repServiceFactory.getRepositoryService(resource, "StatemanagementRepositoryService");
IStatemanagementResource statRsrc = stateMgr.getStatemangementResource(resource);
IStatemanagementUtilsResource statRsrcUtils = statRsrc.getUtils();
IState state = statRsrcUtils.readState();
Above code retrives the current state of the resource....
This API can be used for Approval Process of a resource also....
Have a look at this thred....
/thread/727158 [original link is broken]
and this blog also...
Automating Document Approval Process through Custom Java iView
Regards,
Srinivas.
Similar Messages
-
To get the Workflow status using the Object Key
Hi Experts,
Do we have any transaction code or a Standard table where I can see the status of the Workflow using the Object Key.
For example I have an Invoice Document number for which a Workflow has been triggered and now I want to see the which workflow has been triggered and what is the status for the same. I have only the Invoice Document Number.
I think I can use the SWI1, SWEL etc but I don't have Object key as Input field.
Thanks in advance.
Regards,
SRinivasHi,
You can find the workitem id in table SWW_WI2OBJ.
Here you need to pass the invoice number in "Instacne ID" with leading zeros, business object in Object type.
This may take little bit longer time.
After getting the workitem number then look into table SWWWIHEAD for the workitem status.
Thanks and regards,
SNJY -
Workflow statuses of a purchase order
Hi
I'm looking to get the workflow statuses for some of the steps(Task items) for a purchase order...
Basically I want to know how to get the data shown in SWI1 for a specific workitem in a report...?
Can anyone help..
Thanks
GeethaHi .
check out the below link for workflow of purchase order.
[http://help.sap.com/saphelp_srm30/helpdata/en/5a/c5173f5ff48443e10000000a114084/content.htm]
Thanks
Ankul -
I have a custom approval sequential
private void completeSPTask_MethodInvoking(object sender, EventArgs e)
SPListItem task = workflowProperties.Web.Lists["Workflow Tasks"].GetItemById(WfApproveTaskItemId);
task[SPBuiltInFieldId.WorkflowVersion] = 1;
task["Status"] = "Completed";
task.SystemUpdate(false);
if (task["Status"].ToString() == "Completed")
Hashtable HTdata = new Hashtable();
// HTdata["Status"] = "Completed";
// HTdata[SPBuiltInFieldId.Completed] = "TRUE";
HTdata[SPBuiltInFieldId.PercentComplete] = 1;
HTdata["FormData"] = SPWorkflowStatus.Completed;
// HTdata[SPBuiltInFieldId.TaskStatus] = SPResource.GetString(new CultureInfo((int)task.Web.Language, false),"WorkflowTaskStatusComplete", new object[0]);
SPWorkflowTask.AlterTask((task as SPListItem), HTdata, true);
task.Web.Update();
workflow which works properly, the task status gets completed
When the tasks are 'In Progress' the workflow status also remains "In Progress" but when the task is completed , it shows error Occurred. The following is my code in CompleteTask method.I got it working by removing the complete task method and by updating the task in the ontaskchanged event , In that case both the task as well as the workflow gets updated
-
Get workflow status abap object way
Hi all of you,
I am facing a workflow problem.
I am working on a class that implements the interface IF_SWF_IFS_WORKITEM_EXIT.
That class will be trigger after a user decision step to update a database table with current workflow informations.
<b>My problem is how to find the workflow status (but not the user decision one) by knowing that my class is executed in the user decision step.</b>
I know that I have this information in the table SWIWIOBJCT but as I decided to achieve my task using abap object, I would like to know if somebody know a simple way using abap object.
I am facing another problem: if the user decide to approve the document my workitem (for the user decision step and the global workflow) will now have the COMPLETED, but at the moment my class is executed they don't have the COMPLETED status yet.
Do someone know if the information on the new status of the workflow is stored anywhere?
I don't know if I have exposed clearly my problem, but I can give some points to any helper since the answer is helpful.
Thanks in advance.
ReneSorry for my language. Information about workflow work item's (WI) status can find in SWWWIHEAD (transparent table) by simple select or using FM SWW_WI_WL_READ (on enter need give id of WI).
For another problem: can you get information about WI status twice from your own class (on enter and on out)? If can - check of changes status and did your procedures... -
Move workflow status column from one library to another in Sharepoint 2010
Good morning,
I have two libraries in the same site, LibraryA and LibraryB.
On LibraryA, users upload documents upon which they start a collect signatures workflow. The view on LibraryA contains a column with the signatures workflow name showing status: ‘Compete’, ‘In progress’.
Now on LibraryA I have created a workflow to move any document one month after creation to LibraryB (using retention schedule) irrespective of signature workflow status.
Now what I would like is to have the signature workflow status shown in LibraryB as well. From what I understand you can add the workflow status column only on the library with which the workflow is associated. I also tried, on LibraryB, to create a new
column which Lookups in {Signature Approval History – Outcome} but this did not do the trick either.
Any workarounds?
Many ThanksHi,
According to your description, my understanding is that you want to move the workflow status column to another library in SharePoint 2010.
I recommend to use another column to get the value of the workflow status column and then move this column to another library.
We can use workflow to update the column with the value of workflow status column.
However, the workflow status column stores the value with numbers which represent different status, so we need to update the column with corresponding status based on the numbers in the workflow.
http://chanakyajayabalan.wordpress.com/2010/03/08/sharepoint-workflow-status-codes/
Best regards.
Thanks
Victoria Xia
TechNet Community Support -
SPD 2013 WorkFlow Status Column: Status Not Updated
We are having an issue with the status display of the SPD Designer Workflow status column which is a read only column added by SharePoint to show the status of the workflow. We have some SharePoint 2013 Workflows built using SharePoint Designer that are
attached to specific SharePoint Document Libraries. The expected behavior is for this column to show the workflow statuses (Not Started, Starting Workflow, In Progress and Completed.
Based on our observation this status is showing up although the column does get added for the Workflow that we have. Is there any other dependency for SPD Workflows that are attached to Document Libraries to show the status correctly? Any other settings/configurations
to be made?
Regards,
Vikram
Blog: http://dotnetupdate.blogspot.com |Hi Venkadesh,
It is by design that 2013 workflow will show stage name in the workflow status column when
Automatically update the workflow status to the current stage name is checked.
And the workflow status column will be blank when Automatically update the workflow status to the current stage name is unchecked.
For existing workflows, the workflow status will still exists with the previous values after unchecking Automatically update the workflow status to the current stage name.
We can use Set Workflow Status action to update the workflow status value based on our needs.
Best regards,
Victoria
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Hi ,
I am working on SRM 5.5 , Extended classic scenario.
I have implemented the badi BBP_WFL_APPROV_BADI for the workflow WS14000133.This is for a 3-step approval(shopping value limit ) whenever a shopping cart is created.
However, whenever a shopping cart is created, the workflow status shown is WAITING. I dont think the workflow is even getting started.
When i execute the workflow manually in transaction SWUS by giving the approvers list, the workflow is started properly.
Could anybody tell me why this is happening ?
Also , i have another requirement where i have to disable the approve and reject links in the offline approval mail sent to the approver. Can the BADI BBP_OFFLINE_APP_BADI be used for this purpose ?Hello,
you say that the WF is WAITING whenever the SC is created.
I think this is normal. A WF is initialized when you create a SC. But it is really launched when you "order" the SC.
Are your SC ordered ? or only created/parked?
About disabling the approve/reject link in the offline approval mail, there has been the same question asked few weeks ago. Solution was provided by Pierre:
Approve by E-mail Reject by E-mail link need to be removed
Rgds
Christophe -
Workflow status is missing from the List after make some change in workflow
Hi,
We have this strange situation where the workflow status is missing from List views. Here is the situation:
Now if I check the All List view of this list, I can see these workflows that shows the status of the workflow - say "In progress", "Completed" etc.
When i make some workflow modification and after i save and publish. The workflow status in List will missing.
This issue happening is intermittent.
Why does this happen?
Any workaround/findings for the above scenario are much appreciated.
Thanks
JWeiHi JWei,
The workflow status column gets created when you first create the workflow and its first instance runs. The columns gets removed (and disappears from the view) if you delete the workflow or remove all instances of the wf on the list.
Please check whether you created some lookup columns in this list. If yes, please increase the lookup threshold for that web application in Central Administration.
Please create a new view which only contains the Title column and Workflow Status column, modify the workflow, check the workflow status column in the new view, compare the result.
Please create a new list, create a workflow, and test again, compare the result.
Please check if the link below is useful for you:
http://naimmurati.wordpress.com/2013/11/11/workflow-progress-column-missing-in-a-document-library/
Best Regards,
Wendy
Wendy Li
TechNet Community Support -
Dear All,
I am trying to book an order from oracle quoting. I am getting the following error and unable to proceed.
Please help me.
APP-236113: Order is not eligible for booking. Check workflow status of this order.
Thanks in advance.
Regards,
Gautam.Gautam,
Check the profile option i.e. is to set the default order status while it is created from Quote.
Regards,
F. Afzal Hussain. -
Iam getting PO approval status as incomplete
Hi,
Can anyone please guide me in getting po approval status as approved.Iam a beginner in oracle apps.Is there anything to be done with oracle workflow related to po approval for getting the PO status as approved. Iam getting the notification in notification summary.but the approved notification in notification summary is not changing to approved status in navigation->po/po.
LathaHi JayaChandra,
Even I am facing the same problem. I Created a 'PO Requsition' .It is Approved and after that I am 'Auto Creating' a PO from the 'Requisition' approved .
But I am unable to approve the PO that is created.I am approving by myself and I am not forwarding it.The Status is showing 'InComplete'. But I am Able to Approve a 'Manual PO' but unable to approve 'Auto Create PO'. I dont know the problem and the approval limits are set properly.
Thanks in Advance,
D.V.Narasimha Rao -
Unable to process leave request due to WORKFLOW Status in ERROR in ESS Portal.
Dear Experts,
I'm facing an issue with the leave request of an user. The user has applied leave a week ago but still it has not got auto approved.While analyzing the database of leave request in PTARQ, it has been found that the WORKFLOW STATUS is in ERROR and the DOCUMENT STATUS is in SENT condition.
Kindly help me in this case.
Please refer the screenshot below.
Thanks & Regards,
SurendharHi surendha,
That particular leave request might have gone into error because of worklfow issue at the point of time.
You can simply check with workflow if any issue with workflow was there in that tenure , leave request was being raised,
Now solution is to delete the leave request from PTARQ which is in SENT status and workflow is errored out.
Also take that work item id and get it deleted by workflow consultant (T code SWI5).
Once that leave request/work item got deleted , ask user to again apply leave and it would go to manager for approval.
Once leave request is approved, leave request would be in Posted status and will get updated in IT 2001.
Hope it helps you,
Thanks.
Priya -
How to get OIM workflow waiting for a task successfully completed?
The requirement is to get OIM provisiong workflow pending and wait for a external status ready. When the external status not ready, I return "REJECTED" which mapped to "P" in "Task->Reponse" tab. Meanwhile, in the "Task->General" tab, I set the "Retry Count" to 5 and "Retry Period in Minutes" to 1.
I have hoped that once the task return "REJECTED", the workflow enter status "Pending". One minute later, the task re-instanced by OIM to have another check for whether the external status ready. If ready, return "COMPLETED". If not yet, return "REJECTED" and workflow re-enter pending. And on and on, until to max to 5 times attempt. But in fact, OIM workflow never attempt to re-enter the task again after the 1st time "REJECTED" returned.
How to do with this?Use the code snippet below to get the task status. Based on this you can filter rejected tasks.
userintf = (tcUserOperationsIntf) ioUtilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
provintf = (tcProvisioningOperationsIntf)ioUtilityFactory.getUtility("Thor.API.Operations.tcProvisioningOperationsIntf");
long userKey=100;
tcResultSet userresultSet = userintf.getObjects(userKey);
for(int i=0;i<userresultSet.getRowCount();i++)
userresultSet.goToRow(i);
long processKey = userresultSet.getLongValue("Process Instance.Key");
tcResultSet provresultSet = provintf.getProcessDetail(processKey);
for(int j=0; i<provresultSet.getRowCount();j++)
provresultSet.goToRow(j);
String taskName = provresultSet.getStringValue("Process Definition.Tasks.Task Name");
String taskStatus = provresultSet.getStringValue("Process Instance.Task Details.Status");
Let me know if you have any queries... -
Contract getting into HELD status even after clicking Release button.
Hi Experts,
I have a query regarding Contracts. We have a contract and trying to extend the validity date. Once "Release" button is clicked the Contract is getting into "HELD" status which is incorrect. Correct status should be "Released" status.
We have not implemented any approval workflow for contracts. Please can anyone provide any solution or pointers to resolve this issue.
We are on SRM 5.0, ECS.
Thanks
RB
Edited by: Rajeshree Bhatiya on Jan 24, 2012 4:03 PMHi,
Go to the held contract ,click on change button and then click the check button to see any errors are there.
if there are any errors it will be held position
just check this
G.Ganesh Kumar -
Workflow Status page - web part unable to load
Has anyone seen "the web part was unable to load" in the workflow status page? Only some users are seeing this error but it's not consistent. What we noticed is that this error occurs only after transitioning from our Select to Manage Phase in
our workflow. The same user that received the error could see the Workflow Status PDP correctly in the previous phases and stages too... So the issue doesn't appear to be permissions related. Anyone have any ideas?Hi,
Try to update web from following after migration you need to perform below for web part
$Web = get-SPWeb $Web.AllProperties | Format-Table
$Web.AllProperties[“PWAURL”]=””
$Web.Update()
$Web = get-SPWeb
$Web.AllProperties | Format-Table
$Web.AllProperties[“PWAURL”]=””
$Web.Update()
also from you last reply i understood that after removing custom field which are having graphical indicator and look up PDP is working as expected. It means look up and graphical indicator is creating issues.
For Custom field which are having look up field if no value will be selected then it may give error its a expected behavior. It means you need to fill values in those custom field else you will face issue.
For Graphical Indicator issue: Go through below links
http://social.microsoft.com/Forums/en-US/6cdfc2bf-1df7-4b26-a60f-220364093bda/pdp-webpart-and-graphical-indicators?forum=project2010custprog
http://social.technet.microsoft.com/Forums/projectserver/en-US/75b8f6af-0060-4870-a50d-45d44b58cf5f/indicators-on-pwa-not-displaying-project-server-2010-dec-cu
Hope it will help. Please let me know the out come.
kirtesh
Maybe you are looking for
-
Please help me with this issue.
-
I have a file on my own server which is available to the public to download I uploaded a new version so I know it replaced the existing one. But when I try downloading it through Firefox I just get the older version and not the new one... I seem to r
-
Oracle 9.2.0.1 query bug?
The following test case gives different results on Oracle 9.2.0.1 and 10g. 10g and 3 other competing database products give the answer as FILES_ID VIEW1_ID VIEW2_ID 1 1 1 while Oracle 9.2.0.1 yields FILES_ID VIEW1_ID VIEW2_ID 1 1 1 2 The test case is
-
Assigning Page to a Workset using code
Dear EP friends, I want to assign a page to a workset as delta link using code. Can anybody got any helping document on the same. Plz reply me thanx in advance regards Lakshmikantha
-
HELP! - adding keywords to multiple images in Bridge
I have about 2000 images that a client wants multiple people to add keywords to. Is there a way to export thumbnails and keywording fields to excel and reimport when the keywords have been added? Photos are of different locations and need to be ema