Status updates from custom class and WordAutomation Services TimeJor in irregular intervals
Hello Devs,
following problem: I have a custom application page opened as modal dialog, on which I have a progress bar. The progress bar shows the status of two processes:
1. On button click about 500-600 list elements are being copied from one list to another. I am monitoring the progress and every two seconds I update (with ajax requests) a progress bar control on the page.
2. After all elements (these are docx files in a document library) were copied I trigger the Word Automation Services timer job to convert these Word files in PDF files. I am also monitoring the timer job progress and update the control on the page.
All this works great in my development environment. In the test environment I have two front-end servers and the progress is not being updated regularly. I have also custom logs and see that half of the logs are on the one front-end and half on the
other. The progress bar updates in big time intervals (or sometimes not) dependant on which server the code runs currently...
Is there a way to always get the actual status of these two processes, no matter which server serves the requests at the moment?
Any help will be appreciated.
Thanks,
Vasil
Hi Rahul,
this is how I query the timer job status:
private static ConversionJobStatus GetJobStatusObject(Guid jobId)
ConversionJobStatus jobStatus = null;
try
jobStatus = new ConversionJobStatus("Word Automation Services", jobId, null);
catch (Exception ex)
Logger.Error("Error getting the ConversionJobStatus object.", ex);
return jobStatus;
And then I call jobStatus.Refresh() to get the new values.
What could be possibly wrong on the way I get the job status object?
Thanks,
Vasil
Similar Messages
-
Manipulate movieclip from custom class
Hello.
I have a movieclip (instance name preload), inside of it, I have another movieclip (bar) ... what i'm trying to do is a preloader for external files... i have a custom class and i what to manipulate my movieclip preload from it... you know verify the progress of the load:
Inside my class a have this function
public function loadProgress(e:ProgressEvent):void {
percent=e.bytesLoaded/e.bytesTotal*100;
rutaDos.preload.bar.scaleX=percent;
rutaDos is a reference to the stage... it works, I'm sure of it... the problem is:rutaDos.preload.bar.scaleX; I upload the files but it doesn't verify the progress of the load.
thanks for the helpthe complete class is:
package com.ludwing{
import flash.net.*;
import flash.events.*;
import flash.display.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.display.Stage;
import gs.TweenMax;
import gs.easing.*;
import gs.events.*;
public class Transiciones extends MovieClip {
public var url:URLRequest;
public var loader:URLLoader;
public var rutaDos:MovieClip;
public var imgLoader:Loader;
public var movie:MovieClip;
public var container:Sprite;
public var bg:Boolean;
public var porcentaje:Number;
public function Transiciones(mRuta:MovieClip, miRuta:String,isBG:Boolean,contain:MovieClip) {
rutaDos=mRuta;
bg=isBG;
movie=contain;
container=new Sprite();
url=new URLRequest(miRuta);
imgLoader=new Loader();
imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaderComplete);
imgLoader.load(url);
public function onLoaderComplete(e:Event) {
imgLoader=new Loader();
imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imgComplete);
imgLoader.contentLoaderInfo.addEventListener(Event.INIT, imgInit);
imgLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
imgLoader.load(url);
public function loadProgress(e:ProgressEvent):void {
porcentaje=e.bytesLoaded/e.bytesTotal*100;
rutaDos.preload.bar.rotation=90;
public function imgInit(e:Event) {
movie.alpha=0;
rutaDos.preload.alpha=1;
public function imgComplete(event:Event) {
rutaDos.preload.alpha=0;
movie.addChild(imgLoader);
var myTween:TweenMax = TweenMax.to(movie, 1, {alpha:1, ease:Circ.easeOut});
myTween.addEventListener(Event.COMPLETE, onTransitionFinish);
public function onTransitionFinish(e:Event):void {
//MovieClip(root).gotoAndPlay(2);
//rutaDos.ext.gotoAndStop(2)
/*var my_parent:MovieClip=parent.parent as MovieClip;
my_parent.nextSection=2;
my_parent.gotoAndStop(my_parent.nextSection);*/
//rutaDos.stage.addEventListener(Event.RESIZE, resizeHandler);
if (bg==true) {
rutaDos.gotoAndStop(14);
I try to use an empty movieclip to load a external swf (instance name: ext) this way:
var transicion:Transiciones=new Transiciones(this, "welcome.swf",true,ext);
The external swf loads correctly, but when it is loading (i mean de progress load), the preload doesn't work.... -
I'm looking for a solution where I don't change our current AD groups, (avoid using a local group and a field group), also trying to avoid using a server in a DMZ to handle field people (will need to buy a new server).
At the end i'm looking to use a replica server to push updates from the internet to the field group (or OU with a GPO pointing to such replica server) and use the local server to host the updates locally and push to the office people.
Probably this is the question that needs to be answered, can an OU group have 2 different GPO's pointing to 2 different WSUS servers (local and replica) (local updates vs updates from internet) and if an user of such group is in the office they get updates
from the local server and if he is in the field get the updates from the replica server? I know GPO's can have precedence set to the OU, but do they work like a trigger or something that tells them to go to the next GPO.
Thanks in advancecan an OU group have 2 different GPO's pointing to 2 different WSUS servers (local and replica) (local updates vs updates from internet)
No.
and if an user of such group is in the office they get updates from the local server and if he is in the field get the updates from the replica server?
There are two ways to achieve this. Typically we talk about this scenario when the mobile systems are going to use AU/WU to get Security Updates. Taking advantage of the fact that GROUP policy cannot refresh on a machine which is not "in the office", you
define a Registry Script to run in the user's STARTUP folder, which will set the registry values to configure that client to use the alternate source.
But, in the case where you have an Internet-facing WSUS server in the DMZ, and a Corporate-facing WSUS server on the LAN, you use the SAME URL, but use DNS to direct the client to the correct IP Address. When the client is on the LAN, the LAN DNS gives the
IP Address of the Corporate server; when the client is on the Internet, the Internet DNS gives the IP Address of the DMZ server.
Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
SolarWinds Head Geek
Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
http://www.solarwinds.com/gotmicrosoft
The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds. -
i got my iphone 4 from the uk and my service provider was 3...i moved to india recently...my os version is 4.3.5 (8L1)...is it possible for me to unlock my phone??
The OS version makes no difference to a carrier unlock. 3 do unlock their handsets but you will need to contact them to check the terms they will do it on.
-
It stopped me manifest smilies on facebook (chat, status updates, comments) on Mozilla and not helped or delete cookies and everything else, or reinstall. I use Win 8.1 and I'm forced to install Opera, and if this does not work, the brand will move to Opera. I'm sorry, all is right with the browser but this made me very hampers and can not be used like this. I hope a rapid response to [email protected]
http://i.imgur.com/IWrR0Ke.png?2
I NEED HELP URGENT!!!Sorry for bad english ;-)
-
Im installing the LP8 update from 7.2 and dont have my serial
im installing the LP8 update from 7.2 and dont have my serial, but i have the usb key and the box, but cant find the serial number to do the update does anyone know where i can get it? please support.
What a pity. The update comes with the manuals and the install guide. The serial number is printed on the sticker of the install/license guide. For install you need the L7 USB-key and the L8 serial number. If it did not come with the serial number or if you have lost it you have to contact apple.
Eddie -
Loading XML using a custom class and accessing it from other classes?
I began with a class for a movie clip rollover function
FigureRollOver. It works marvellously. Three things happen:
1) it loads XML from a file "mod1_fig1.xml" and uses another
class, XMLMember, to retool the scoping of the XML so that I can
get at it
2) an onload call inside of XMLMember calls the myOnLoad
function and transfers the XML into an array.
3) so long as the array is finished building, rolling over a
movie clip attaches a new movie clip with the rollover text in it.
But I don't want all those functions in one because I need it
to be more dynamic, starting with being able to load any old xml
file instead of just "mod1_fig1.xml", plus it seems like
overbuilding to have all of that in one class, so I've separated
out the loading of the XML and building of the array into its own
class, FigureXMLLoader. FigureRollOver is then left to just attach
the rollover with text in it, extracted from the array built by the
new class.
Problem is, though the array builds inside FigureXMLLoader, I
can't figure out how to make it available outside the class. I know
that I'm constructing things in the wrong order, and that the array
needs to be somehow built inside the class function to be
available, but I can't figure out how to do that. A cruddy
work-around is to put a function call at the end of the building of
the array, which calls yet ANOTHER function on the main timeline of
my .swf to put the array I've just built into a new variable. This
works, but it's messy. It seems like I should be able to have one
line of script in the .swf that generates an array on the main
timeline (or just a public array) which I can then access from my
FigureRollOver class:
var myRollOvers:Array = new FigureXMLLoader("mod1_fig1.xml");
Here is FigureXMLLoader (see comments in the code for more
details) which obviously does not return an array as it is, because
of all the working around I've had to do. Note the "testing"
variable, which can be traced from the main timeline of the .swf,
but I will get "not what I want" because of course the array hasn't
been built yet, and never will be, inside of the declaration as it
is. How do I get it in there so I can return an array?
Thanks!Suggest you ask this question in the Actionscript forum as
this forum is
more tuned to database integration questions.
You can create arrays outside a class and pass them into it
by reference and
visa versa build arrays inside a class and pass out via
reference.
The preferred approach is to place the array in a class and
not expose it.
Then add methods to use the array or should we say to use the
class.
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
"maija_g" <[email protected]> wrote in
message
news:ed4i43$9v0$[email protected]..
> Update: I've now put this on the main timeline of the
.swf:
>
> myRollOversLoaded = false;
> var myRollOvers:Array;
> var roll_content = new FigureXMLLoader("mod1_fig1.xml");
>
> And inside the "myOnLoad" function in FigureXMLLoader,
just after the
> while
> loop I've put this:
>
> _root.myRollOversLoaded = true;
> _root.myRollOvers = figure_arr;
>
> The movie clip rollover won't act until
myRollOversLoaded is true. It
> works,
> but it still seems klugey. Any suggestions for a more
elegant solution
> would be
> appreciated.
> -
Dead Fusion drive, brand new Late 2013 iMac. No status update from Apple.
Can someone let me know who I shouyld contact with regards to my below issue? I've spent hours upon hours trying to get my new iMac back from Apple store here in New York city, no success.
Purchased a new Late 2013 model 21" build-to-order iMac 3 months ago >
Hard drive partition corrupt within first month which required in store HD partition correction flash via genius bar >
HD hardware failed next month >
Genius appointment Feb 6 2014, was told new fusion drive was required and would take "2-3 days" >
7 days later I went in-store for status and was told they had no info and would call me with an update >
3 more days I go in store again after no call, still no status update >
Forced to purchase a new cheaper PC so I could keep working from home >
Now its 13-14 days later, I just spent over 2 more hours with Apple Support and still no results, now waiting for store Manager (“Matt”, W 14th St store in NYC) to call me. Its been 5 hours since my call this morning.
I have purchased a new computer as I work from home and cannot be without a computer fofr my job. This is ridiculous, I demanded a refund yet was told because I purchased from an authorized reseller (Tekserve - tekserve.com ) and not an actual Apple store, they cannot refund. Tekserve receipt states all support must go through Apple as it’s a build-to-order system. I paid over $1800 for this iMac (2.7GHZ quad core, 16gb RAM, Fusion drive etc..) a few months ago and it’s been the worst experience I’ve ever had with Apple in 7 years. Pi55ed off. Give me a new exact model iMac today OR give me a refund.
Apple employee, Look up the below repair ID, it'll have my cell phone number attached. Call me anytime with a solution. I've spent hours and hours on calls with Apple support with no results, no return calls from store manager.
Serial: D25LG******* / Repair ID R114745188brettnyc wrote:
Thats my only option, I shall visit the store this evening and demand to see the manager.
Buying from an Authorized Apple reseller should never mean I get any less support than buying direct from Apple.
You're totally correct on both counts, when you ask to speak to the manager, even though you may be tempted to be angry the best approach to handling the situation is by being; calm, organzied and persistent. Bring all receipts, include names, times, places of who you spoke to and state your case.
I'm sure your issue will be addressed. In addition if you are in the US you can always call Apple's customer relations phone number, I believe the current number is 800-767-2775.
Good luck.
<Edited by Host> -
I have a custom class that adds clips from the library to
another clip on the stage. The clips i am adding have a text field
and a bullet point inside and given the tempory name 'item'. After
the class adds a clip I can position the bullet point using
item.bullet._x and _y but when I try to use the following script i
get no result at all:
var newCol:Color = new Color(item.bullet);
newCol.setRGB(0xff0000);
If i swap item.bullet for a clip on the root level it works
but not for the bullet.
The movieclips i am adding are registered as instances of
another custom class. Could this have something to do with it?
Any thoughts welcome as the deadline is looming
Cheersa movieclip.
I can access its positional and scaling properties but nots
the setRGB method -
Updation of option classes and option item in already created model
Let us say
Model A
Option class A1
Option item a11
Option item a12
Option class A2
Option item a11
Option item a22
We are selling this product to a customer with service warranty attached for a year.
Then in a weeks time you are adding or deleting an option class/ option item.
Will it affect the product already sold to the customer while returning for service.
Also, the models are not created in BOM, these are Rule Based Models with out BOM
Is there any revision no. we can assign to the changes done?
Regards,
Pavithara R
Edited by: Pavithara Rathinavel on Feb 9, 2012 3:38 AMTypically, it is better to end-date components in ATO / option class than deleting them.
In your case, even if you delete them, the configuration is already present on the sales order and the component is already present on the * number BOM. So you should be ok.
It is just that if you were to copy that old sales order, you may get validation errors because the old component is not valid anymore.
Hope this helps,
Sandeep Gandhi -
Hi Frds,
I am updating the Order Status from Workflow. So the Status update (or Order Changed) is save with Workflow ID. I need to insert UserID instead of workflow ID. Please help me out of this.
Thanks
ImranHi Imran
With the very few details available on your process, the workflow design and the "Order", all I can suggest is that:
1) In your workflow definition, go to the step which sends the user decision, in the binding FROM the TASK TO the Workflow, set _ACTUAL_AGENT to a workflow container element , say DECISION_AGENT (of type SWHACTOR)
2) Assuming that the next step in APPROVAL branch is setting of the status, go the task ID of that Step -> make it a dialog step (remove the Background Processing check) -> set it's agent assignment to general task
3) Back in the workflow, set that STATUS SETTING step to Advance With Dialog under the details tab
4) In the control tab of the same step, in the agents section, set agent as EXPRESSION and the value as &DECISION_AGENT&
When a user approves the decision item, his ID will be stored in DECISION_AGENT
The status set will execute immediately (because of "Advance with Dialog") in the same session of approving as the user who approved is the same running this step now
The status will be set by the ID of the Approver
The above is hypothetical considering
1) You do not have dynamic parallel processing
2) Status setting happens immediately after the approval; as a first step in the approval branch
3) The Decision Task does not has "Confirm End of Processing" checked.
Regards,
Modak -
Calling a method from custom Class in WD Application
Hi,
I wrote a piece of code in method SEARCH for my WD Application.
Instead of diectly callling the method I would like to create a class and then call the method.
How do we proceed?
Do we use SE24 first or can we start creating class from WD application itself?
Rgds
varaHi Vara,
Either way it is possible if you are creating from web dynpro then you can create assistance class from component properties there you can write one method and to access that method always you have an instance wd_assist.
From se24 create a class and declare a method. if you declare level of method is instance then you have to create object first in application and then access your method using created instance. -
Modification Log from Customer Class
Hey guys.
Its possible to get a data modification log, or something like this, from the Customer Class data?
We use customer classification, with some customized fields, that store data in AUSP, but we can't found out if there is a modification log for those fields.
Thank you.Hi,
Use function module CHANGEDOCUMENT_READ to get the change log information. For customer master email id changes
Pass
OBJECTCLASS = 'ADRESSE',
OBJECT ID = CONCATENATE 'BP ' <address number of customer from KNA1> "KNA1-ADRNR.
To the function module CHANGEDOCUMENT_READ.
Regards
Vinod -
DISM Command to retrieve updates from software distribution and apply to wim file
I'm following
this guide about slipstreaming updates into a wim file. What im attempting to is what the author outlines in step 2, namely pulling updates from the software distribution folder on a pc that has had the image applied to it and then patched to current. The
trouble I'm running into is around the command. namely this section DISM
/image:C:\Mount
/add-package /packagepath:”%U” Running this command produces a invalid path message. What should be happening is the previous commands
are telling it to pull in any files name .cab from all of the directories, but this doesn't seem to be working. I can't define this as a static path as there are tons of sub-folders in this directory with the cab files. Am I just doing something wrong? how
can I accomplish this?I'm still having trouble with this. For some reason, it is stripping the % sign. So I am seeing this when I run my batch file:
/add-package /packagepath:"u"
or
/add-package /packagepath:"f"
Any ideas? -
Hello Guys,
I have updated from SCOM 2012 SP1 to SCOM 2012 R2 UR5. After the update I saw all my agents in Pending Management. I rejected them by mistake and now they cannot be updated through the console anymore. They won't return in Pending. Is there any way to rescan
all my agents to get them in Pending Management again so I can update the SCOM agent to R2 UR5 ? Any powershell command or SQL query ?Hi There,
From 500 agents, How many are manually installed ? As for manually installed the Wizard will not work and you will have to do it manually.
Also if you have SCCM, You can push it through SCCM or via group policy. As the setup is repackaged and will not require any user interface options.
or try the below script to push the MSI file on multiple servers in 1 shot.
#Variables
$computername = Get-Content 'M:\Applications\Powershell\comp list\Test.txt'
$sourcefile = "\\server\Apps\LanSchool 7.7\Windows\Student.msi"
#This section will install the software
foreach ($computer in $computername)
$destinationFolder = "\\$computer\C$\download\LanSchool"
#This section will copy the $sourcefile to the $destinationfolder. If the Folder does not exist it will create it.
if (!(Test-Path -path $destinationFolder))
New-Item $destinationFolder -Type Directory
Copy-Item -Path $sourcefile -Destination $destinationFolder
Invoke-Command -ComputerName $computer -ScriptBlock { & cmd /c "msiexec.exe /i c:\download\LanSchool\Student.msi" /qn ADVANCED_OPTIONS=1 CHANNEL=100}
Source: http://powershell.com/cs/forums/p/6935/11336.aspx
Gautam.75801
Maybe you are looking for
-
? Which flash player for Mac OS 10.4.11
I had one that worked before but then I was asked to upgrade. I searched downloaded what I was supposed to but read to uninstall what I had and now I have nothing that works. I just want flash player. At the moment I am not replacing my computer, it
-
11i : Can we run Apache and Forms on cluster for failover?
Hi... We are currently running 11.5.5 successfully on 4 servers: URANUS (cluster made up of HADES and ATHENA) : database and reports ARTEMIS : forms server PEGASUS : http server We are now attempting to reconfigure the application architecture to inc
-
Just having PSD an Tiff to choose from is a pain. Because maybe you aren't planing on saving it as a tiff, but want to save it as a jpeg for example after your done with the edit. You should be able two choose multiple formats and it should have a a
-
MLS function field in Concurrent Program
Hello what is the use of MLS Function field in conc. program definition form.
-
Upgrade iMac from Tiger to ? Suggestions?
Any good suggestions on upgrade from Tiger for my iMac? I can't do Lion, apparently, as my iMac is Intel CoreDuo -- looks like it doesn't fit the specs for Lion. I can't seem to upgrade my Skype and Safari - and can't use Chrome - on Tiger, so need a