BefImport default script
Hello world
I am new to FDMEE and I'm having some trouble to launch the fdmee scripts.
The operation is the same for all files with the exception of DSLEMAFIN, where I added a line to try to eliminate quotation marks double of all the members of my file. When I run everything, it says in the newspaper:
2015-06-11 11:12:58, 106 [AIF] INFO: run the following script: \\hypiagdesdata.corp.iberia.es\FDMEE/data/scripts/event/BefImport.py
2015-06-11 11:12:58, ERROR 127 [AIF]: the script failed to run:
2015-06-11 11:12:58, 852 FATAL [AIF]: load balances data launch GL error
2015-06-11 11:12:58, 866 INFO [AIF]: end process FDMEE, process ID: 2367
But if I run only the script that affects files in the location of DSLLOAD, it works and process the entire file.
Could someone help me with this please?
Import os
import re
If fdmContext ["LOCNAME'] == 'DSLLOAD ':
fdmAPI.logInfo (fdmContext ["LOCNAME"])
Try:
filename = fdmContext ["FILENAME"]
Inbox = fdmContext ["INBOXDIR"]
#filedir = fdmContext ['FILEDIR']
fdmAPI.logInfo (filename)
fdmAPI.logInfo (inbox)
file = inbox + '\\DSLLOAD\\' + filename
file_out = inbox + "\\DSLLOAD\\" + file name ".out".
#file = inbox '-' + filedir + "\\"+filename. "
#file_out = inbox + "\" + filedir + "\\"+filename + «.out "»
fdmAPI.logInfo (file)
end = open (file, "r")
who cares = open (file_out, "w")
for the end line:
lineSplit = line.split (",")
#fdmAPI.logInfo(lineSplit[1])
lineIni = lineSplit [0] + ', ' + lineSplit [1] + ', ' + lineSplit [2] + ', ' + lineSplit [3] + ', ' + lineSplit [4] + ', ' + lineSplit [5] + ', ' + lineSplit [6]
care. Write(lineIni+",PAX_QTY,"+lineSplit[7]+"\n")
care. Write(lineIni+",AVL_SEAT_QTY,"+lineSplit[8]+"\n")
care. Write(lineIni+",RPK_QTY,"+lineSplit[9]+"\n")
care. Write(lineIni+",ASK_QTY,"+lineSplit[10]+"\n")
care. Write(lineIni+",TOTAL_FLT_NOS,"+lineSplit[11]+"\n")
care. Write(lineIni+",TOTAL_FLT_LEGS,"+lineSplit[12])
end. Close()
care. Close()
except IOError, err:
fdmAPI.logError ("My error" + str (err))
OS. Remove (file)
OS. Rename (file_out, leader)
If fdmContext ["LOCNAME'] == 'DSLEMAFIN ':
fdmAPI.logInfo (fdmContext ["LOCNAME"])
Try:
filename = fdmContext ["FILENAME"]
Inbox = fdmContext ["INBOXDIR"]
#filedir = fdmContext ['FILEDIR']
fdmAPI.logInfo (filename)
fdmAPI.logInfo (inbox)
file = inbox + '\\DSLEMAFIN\\' + filename
file_out = inbox + "\\DSLEMAFIN\\" + file name ".out".
#file = inbox '-' + filedir + "\\"+filename. "
#file_out = inbox + "\" + filedir + "\\"+filename + «.out "»
fdmAPI.logInfo (file)
end = open (file, "r")
who cares = open (file_out, "w")
for the end line:
Line = Line.Replace ('"'," ")
lineSplit = line.split (",")
#fdmAPI.logInfo(lineSplit[1])
lineIni = lineSplit [0] + ', ' + lineSplit [1] + ', ' + lineSplit [2] + ', ' + lineSplit [3] + ', ' + lineSplit [4] + ', ' + lineSplit [5] + ', ' + lineSplit [6] + ', ' + lineSplit [7] ',' + lineSplit [8]
care. Write(lineIni+",psj_qty,"+lineSplit[9]+"\n")
care. Write(lineIni+",avl_seat_qty,"+lineSplit[10]+"\n")
care. Write(lineIni+",RPK,"+lineSplit[11]+"\n")
care. Write(lineIni+",Ask,"+lineSplit[12])
end. Close()
care. Close()
except IOError, err:
fdmAPI.logError ("My error" + str (err))
OS. Remove (file)
OS. Rename (file_out, leader)
If fdmContext ["LOCNAME'] == 'DSLTAKEOFFMR ':
fdmAPI.logInfo (fdmContext ["LOCNAME"])
Try:
filename = fdmContext ["FILENAME"]
Inbox = fdmContext ["INBOXDIR"]
#filedir = fdmContext ['FILEDIR']
fdmAPI.logInfo (filename)
fdmAPI.logInfo (inbox)
file = inbox + '\\DSLTAKEOFFMR\\' + filename
file_out = inbox + "\\DSLTAKEOFFMR\\" + file name ".out".
#file = inbox '-' + filedir + "\\"+filename. "
#file_out = inbox + "\" + filedir + "\\"+filename + «.out "»
fdmAPI.logInfo (file)
end = open (file, "r")
who cares = open (file_out, "w")
for the end line:
lineSplit = line.split (",")
#fdmAPI.logInfo(lineSplit[1])
lineIni = lineSplit [0] + ', ' + lineSplit [1] + ', ' + lineSplit [2] + ', ' + lineSplit [3] + ', ' + lineSplit [4] + ', ' + lineSplit [5] + ', ' + lineSplit [6] + ', ' + lineSplit [7] + ', ' + lineSplit [8]
care. Write(lineIni+",GC_KM_DIS,"+lineSplit[9]+"\n")
care. Write(lineIni+",FIRST_SEAT_QTY,"+lineSplit[10]+"\n")
care. Write(lineIni+",CLUB_SEAT_QTY,"+lineSplit[11]+"\n")
care. Write(lineIni+",WTP_SEAT_QTY,"+lineSplit[12]+"\n")
care. Write(lineIni+",ECON_SEAT_QTY,"+lineSplit[13]+"\n")
care. Write(lineIni+",BLOCK_HRS_DUR,"+lineSplit[14]+"\n")
care. Write(lineIni+",TAXI_HRS_DUR,"+lineSplit[15]+"\n")
care. Write(lineIni+",TAXI_OUT_HRS_DUR,"+lineSplit[16]+"\n")
care. Write(lineIni+",TAXI_IN_HRS_DUR,"+lineSplit[17]+"\n")
care. Write(lineIni+",FLY_HRS_DUR,"+lineSplit[18]+"\n")
care. Write(lineIni+",PAX_FIRST_QTY,"+lineSplit[19]+"\n")
care. Write(lineIni+",PAX_CLUB_QTY,"+lineSplit[20]+"\n")
care. Write(lineIni+",PAX_WTP_QTY,"+lineSplit[21]+"\n")
care. Write(lineIni+",PAX_ECON_QTY,"+lineSplit[22]+"\n")
care. Write(lineIni+",PAX_NR_QTY,"+lineSplit[23]+"\n")
care. Write(lineIni+",ASK_FIRST,"+lineSplit[24]+"\n")
care. Write(lineIni+",ASK_CLUB,"+lineSplit[25]+"\n")
care. Write(lineIni+",ASK_WTP,"+lineSplit[26]+"\n")
care. Write(lineIni+",ASK_ECON,"+lineSplit[27]+"\n")
care. Write(lineIni+",OPS,"+lineSplit[28]+"\n")
care. Write(lineIni+",RPK_FIRST,"+lineSplit[29]+"\n")
care. Write(lineIni+",RPK_CLUB,"+lineSplit[30]+"\n")
care. Write(lineIni+",RPK_WTPLUS,"+lineSplit[31]+"\n")
care. Write(lineIni+",RPK_ECON,"+lineSplit[32]+"\n")
care. Write(lineIni+",RPK_NR,"+lineSplit[33])
end. Close()
care. Close()
except IOError, err:
fdmAPI.logError ("My error" + str (err))
OS. Remove (file)
OS. Rename (file_out, leader)
Thank you!
Valeria
11.1.2.3 FDMEE... Apparently it was a problem of indentation between lines. Thank you for your help,
Concerning
Tags: Business Intelligence
Similar Questions
-
play music instead of silence on the default script
I'm trying to configure the IPCC Express
If Agents are busy or not ready, default script from the IPCC plays the welcome message then the time of silence then greeting and so on...
I want to replace the time of silence by music file
How can I do this? How can I change the default script to read the message file then music of greeting and so on?
Concerning
Mohamed
You can subscribe to delay DelayWhileQueue dry stage and insert another stage of PlayPrompt which will refer to your music .wav file.
I hope this helps.
Brandon
-
Well I'm doing a flip book House in Photoshop CS5 and tries to save the images.
I imported a video and converted into individual layers for each image.
Now I'm trying to save it by going in "file > Scripts > layer export to files and there is no option in my Scripts tab at all."
When I go on "file > Scripts all that are in there is just 'Browse'."
Then when I click on 'Browse' it just takes me to the folder where I opened the PS file.
Anyone has an idea on how I can get back the default scripts?
I have even not all scripts to export layers, which is something I do often.
Location depending on the version of the OS and Photoshop script must be in the Photoshop presets for example, Scripts Windows 7
"C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit) \Presets\Scripts\Export layers to Files.jsx"
Do a search on your drive to "Export layers to Files.jsx" where the file has been moved. Other wise get it back from your backup system or reinstall Photoshop on top of itself to recover the missing files. You won't lose you Photoshop preferences and responsible actions etc. your setting is not overwritten.
-
Anyone know what is the default font used in the AE scripts?
Looks like I forgot the name.
Quentin
Not sure, but this font is probably the system and possibly the version of After Effects.
For me (Windows 7):
-ExtendScript police: SegoeUI 12 points
-AE CC: Tahoma 11 points
-AE CS5.5: Tahoma 11 points
It does not depend on the type of window (palette or dialog)
You can get for example like this
var fonts = (function test(){ var ret = {palette : 0, dialog: 0}, w; w = new Window("palette"); ret.palette = w.graphics.font; w = new Window("dialog"); ret.dialog = w.graphics.font; w = null; return ret; })();
Xavier
-
Essbase default script on the last update given
Hello
We use 11.1.2.1 planning version for the demand for labour. Us real and confirm data within essbase on each month. Loading data confirm delete last month confirm the data using CLEARBLOCK EVERYTHING keeping confirm the scenario in a FIX. After loading the data of the current month, we will launch the default calculation. As the data is a little more in our Application it takes more time.
Is it possible to calculate only updated data only, to improve performance. Please help me on this.
Thank you and best regards,
Combot
Published by: 923621 on May 10, 2013 07:26Hi Amy,
The script looks good if we wanted to consolidate account of the month underway and all the months for the rest of the dimensions. In addition, if we wanted to consolidate all the dimensions in the current month, you can use the following:
FIX("MAY", "CONFIRM) CALC DIM("Accounts"); AGG("Period","Scenario","Employee","Version",..) END FIX;
Kind regards
William -
ID CS3 - default scripts doesn't work not, error
Try using scripts by default 'LabelGraphics.jsx' & 'CropMarks.jsx '.
Have also tried to use the applescript equality in the menu scripts.
In all cases, nothing happens. No message, no script activity seen.
Some other scripts such as "AddGuides.jsx" work very well.
Copied scripts to work from another machine and get the same result.
What prevents these scripts to work and any ideas on how to fix it?
InDesign CS 3
OS X 10.5.6
Thank you
They do nothing, or to display a message and * then * do nothing?
The two scripts you mention you need to have something selected.
Labelgraphics in you requires to have a selected (imported) image; It displays a dialog box requesting that call them to add, and then do so.
Cropmarks requires you have any selection. It then displays a dialog box, asking what kind of brands, it must attract where around your selection.
As the two scripts display a warning clear when you have nothing selected, I guess an another script removes all the dialog boxes and does not restore this setting. (It is a usual thing to remove own ID warnings and confirmations, but it is considered polite to restore the settings later.)
Copy the following line into an empty text file and record under the name "restoreDialogs.jsx" in the scripts folder. You can find the right folder to save in law (or frame) by clicking on the folder of the user in the script palette and selecting 'reveal in Finder/Explorer. Run the script for reposting of the dialog box and test the scripts again.
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
-
Hello:
I have a N7K which has strange behavior for me
When I connect to the console once the welcome a message command is executed
In my case is "terminal color:
User access audit
N7K1 login: admin
Password:
Operating system (NX - OS) Cisco Nexus software
TAC support: http://www.cisco.com/tac
Copyright (c) 2002-2012, Cisco Systems, Inc. All rights reserved.
The copyright in certain works contained in this software are
owned by others and used and distributed under
license. Some components of this software are licensed
the GNU Public License (GPL) version 2.0 or GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
This license is available at
http://www.opensource.org/licenses/GPL-2.0.php and
http://www.opensource.org/licenses/LGPL-2.1.php
"terminal color."
N7K1 #.
I do not see this command in the running configuration
The question is where is - this command?
I get a default script and I found there is a called Phyton scripting language that allows you to write scripts to fancy
But I did not thing is tha case because the bootflash:scripts folder is empty
Clues?
Thanks in advance
Al
Hi Al,.
Take a look at the bootflash and check if you have a file called. RC.CLI. this file is added when you run the terminal color persists and are then executed every time that connects to the switch.
If the file exists, delete it and the terminal color command must be executed when a user connects.
Concerning
-
management of the script errors when using the step of the call placed
I have a script which is activated by a trigger of jtapi. At some point places the caller on hold, makes a call using step Place call, plays a prompt and then terminates the call.
If the trigger (first contact) hangs up when the phone for the second contact rings, when the second contact answers the phone plays the default script or "Sorry we currently live the problems of the system."
Here's what I did (without success) to try to get around it: changed the default script for the application (do not know why it does not work.) This logic is invoked in a subflow, maybe that's the problem?), placed a Terminate step for the second contact in case of square step call, put in a bunch of steps On Error Goto who attend a stage finish to the second contact.
Brandon, until the original caller is replaced, an 'exception' will be thrown.
To make up for it, to the step "On Exception GoTo" > choose the ContactInactiveException > choose the label you want the call to go into the script > clears the exception (on no exception) and then play your .wav file (sorry, the band hung up.. blah, blah) > and then terminate.
who should git'r done.
Pleae rate useful positions.
-
Cannot change the default mode in wscript
In Windows 7, when I try to change the default mode of wscript, I get an error message. When I get home
CScript //H:CScript
the command line, I get
CScript error: cannot change the default script host
What should I do?
Open command prompt w / administrative permissions (right click, run as administrator), and then run the command:
cscript //h:cscript //s //nologo -
FDMEE event Script - BefFileImport
Hi all
I was looking for to use the feature to change dynamically Import referencing the guide to FDMEE administrator (see below). However, BefFileImport event script does not seem to be an option in the Script Editor. I also created a file called BefFileImport.py and she didn't register when I've run a load process.
Is this an oversight in the Administrator's guide and they forgot to add this to FDMEE or am I missing something?
THX,
Mike
Dynamically change import Formats
You can use the BefFileImport event to change the format to import for a location dynamically.
If fdmContext ["LOCNAME'] == 'ITALY ':
filename = fdmContext ["FILENAME"]
If filename [: 12] == 'ProductSales:
fdmAPI.updateImportFormat ("SALESJOURNAL", fdmContext ["LOADID"])
To answer my own question, it seems that I can dynamically change the Import Format using the BefImport event script. I believe that the reference to "BefFileImport" in the FDMEE Administrator's guide is a classic obsolete FDM reference... they should refresh that.
THX,
Mike
-
to hide the calc option "DEFAULT" in the calculation dialog box
Hello
Anyway is to hide the default calc of the calculation scripts dialog box. It is visible to users as well, @ and they trigger the calculation.
Thank you
JP
Hi JP,
You cannot remove this option but to avoid the accidental use of the same, you can change the content of the defult calculation script. To do this:
1. open the Regional service console and go to the database to which you want to change the default script.
2. right click on the database and go to the value-> default calculation.
3. replace Calc All; to;
Now even if someone run this script, nothing will happen...
I hope this helps...
Kind regards
Amit Khanna
-
CF2016 - Alias/cf_scripts / scripts on the built-in Web server
I am following the guide lockdown here:
The guide proposes to move/cf_scripts/scripts directory, I did.
The guide also offers using only the web server integrated access to the ColdFusion administrator, this is how I put it in place.
The guide also indicates that you need to create an alias for the directory moved to the built-in web server. See page 58 of the PDF.
If you plan to use the built-in web server to access the ColdFusion administrator, you may need to create an alias for/cf_scripts/scripts if you have changed the default Script Src in ColdFusion administrator.
To create a new Alias for/cf_scripts/scripts on the built-in web server
If you plan to use the web server to access the ColdFusion administrator, then you must also add an alias by adding a tag context inside the tag of the located server.xml file host: /opt/cf11/cfusion/runtime/conf/server.xml
< context path = ' / '.
docBase = "/ opt/cf11/cfusion/wwwroot".
Workie = "/ opt/cf11/fusion/runtime/cone/Catalina/localhost/tamp.
alias = "/ coscripts = / opt/cf11/fusion/wwwroot/CFIDE/scripts" / >
Restart ColdFusion, and then test by visiting /cfscripts/cfform.js on your server of builtin.
There are a ton of typos in the present (Workie vs WorDir, vs conf cone, Pack vs coscripts vs cfscripts, tmp, etc..
This also seems to be referencing the paths cf11 (CFIDE/scripts vs /cfscripts/cfform.js vs cf_scripts/scripts/cfform.js and cf_scripts/scripts).
In addition, coldfusion - error.log notes the following:
WARNING: A context path should be an empty string or start with a ' / ' and do not end with a ' / '. [The path [/] does not satisfy these criteria and has been replaced by]
WARNING: [SetPropertiesRule] {Server/Service/engine/host/context} setting property 'alias' to ' / cf_scripts/scripts = / cf_scripts/test_scripts "did not find a corresponding property.
The first line is not a problem, but the second line is. alias is not a valid property of the context.
The server.xml file is an example, and it is as follows:
"< context path =" "docBase =" < cf_home > / wwwroot "WorkDir =" "< cf_home > / runtime/conf/Catalina/localhost/tmp" > "
< resources >
< base preResources = "docBase1" className = "org.apache.catalina.webresources.DirResourceSet" webAppMount ="/ aliasPath1" / > "
< base preResources = "docBase2" className = "org.apache.catalina.webresources.DirResourceSet" webAppMount ="/ aliasPath2" / > "
< / resource >
< / context >
It aligns with the Apache docs.
I have CF installed on Windows, to F:\CF_2016\. That's what I did to alias the directory of scripts (renamed to test_scripts for testing) for the built-in web server:
< context path = "/" docBase = "F:/CF_2016/cfusion/wwwroot" WorkDir = "F:/CF_2016/cfusion/runtime/conf/Catalina/localhost/tmp" >
< resources >
< base preResources = className "F:/CF_2016/cfusion/wwwroot/cf_scripts/test_scripts" = "org.apache.catalina.webresources.DirResourceSet" webAppMount = "/ cf_scripts/scripts" / > "
< / resource >
< / context >
It seems to work. Is this correct? Wouldn't be an alias as \Scripts or /cfscripts instead of/cf_scripts/scripts?
Why exactly should I alias this to the administrator?
Thank you
Hello
I was in the same boat (we are defining a profile secure for testing) and I see no one answered you so I want to offer what we were doing.
webAppMount = "/ {NEW_CFSCRIPTS_VIRTUAL_DIRTORYNAME" / >} "
You see, I believe the problem you had previously was that the base should be the physical directory and the webAppMount should be the virtual directory.
You were correct about the typos in the "official" document
I don't know if it's important or not, but we have also created the directory "tmp" (quoted above) within the "{YOUR_DRIVE} :/. "{CFROOT} / cfusion/runtime/conf/Catalina/localhost / ' because it is not there by default.
Kind regards
David -
I update my 2014 Photoshop Photoshop 2015 CC CC and not all scripts are
I'm updating Photoshop 2015 CC and not all default scripts are loading missing scripts, I use layers in all my projects and it doesn't download (and more).
I use the Browse button congratulate to run the script, but it is very uncomfortable to do whenever I need. The funny thing is that load my custom Web scripts.
Someone has an idea how solve it?I know it's the new update, but there are a lot of bugs that I read and the bugs I staff meeting.
I hope that Adobe will soon release an update to the fixed a bug because Photoshop 2014 cc worked for me as if by magic.Eli.
Have you looked under file > export in photoshop cc 2015?
-
How to make the default tool rotation
Someone has already posted an answer how the tool rotation by default here
but my problem is that I have absolutely no idea whether to run a script. I've tried a few things, but they didn't work. Can someone explain this to me as if you would he explain to your grandmother? Heck, just walk me through it step by step if possible.
I has a period of a few days and I create a PDF 3D a SketchUp model, I created and exported in Acrobat 3D. Basically what I need to do, is make Acrobat 3D orbit much better. I can't send it to customers the way it is by default. It's a joke. By default, it is really REALLY BAD. I need the rotation button deleted (which I think is possible) or make the default value of the spin button.
On a side note, the camerarotate.js Adobe script provides is horrible... no pan? Come on! Coming from SketchUp where orbit works so perfectly, Acrobat 3D is painful to use sometimes.Thank you guys.
Hello Szarky,
-Create a .txt file containing the following line:
runtime.setCurrentTool (runtime. TOOL_NAME_SPIN);
You can change the .js extension renaming (file extensions should define visible so)
-Double-click on your Annotation 3D with the advanced editing tool (image below)
-Click on edit content
-Fix Javascript under default script by browsing the file .js or .txt created
I hope this can help, Chuck
-
IPCC, apply the skills of a CSQ
Hello
Here's my question.
Once I configured the CSQ and the skills and resources (agents) are configured using the CRA Editor, what should I do in order to find the resource with the appropriate skill.
What I would do in the script?
Thanks in advance for your help.
Orlando.
Hello
Step select a resource offers a call to a queue of Service Contact (CSQ), which contains a game associated with agents that are able to treat a certain type of appeal. The incoming call will be provided by one of the available agents in the CSQ.
Consider your example.
There are six agents Agent1... Agent6, 3 HelpDesk, SpE and management skills.
There are a 3 CSQs - CSQ1 to CSQ3
Agent1 and Agent2 has jurisdiction HelpDesk (6)
Agent3 & Agent4 has skill HelpDesk (5) & SpE (6)
Association5 & Agent6 a skill = HelpDesk (4) & SpE (5) & (6)
The title of the CSQ1 resources are
Agent1
Agent2
Agent3
Agent4
Association5
Agent6
Assume that the 'selection criteria' for CSQ1 are "more qualified".
Consider the following script
---> Start
---> other steps
---> Select Resource (CSQ1)
---> Connected
---> Queue
....
In step 'Select a resource' is executed, the system checks for resource available in CSQ, CSQ1. As the selection criteria for the CSQ1 is "Smarter", the system checks if the highest skills agents are available. In our case, it's Agent2 and Agent1 with highest skill HelpDesk (6). Since there are equal, the system checks for longest available agent. If Agent2 and Agent1 is not available, next qualified resource (Agent3 and Agent4) etc. control system
Consult the guide of the developer of the Application to use the step "select a resource.
You can also view the default script icd.aef that uses step 'select a resource.
Editor step reference guide may also be useful
http://www.cisco.com/univercd/cc/td/doc/product/voice/sw_ap_to/apps_3_5/english/admn_app/step.pdf - Pg.No:13 - 8.
Concerning
Yogi
Maybe you are looking for
-
Please help with Windows 7 upgrade
Hi, I recently bought a desktop computer (compaq presario cq5110y) and he qualified for the upgrade to Windows 7 when it comes out in October. I followed the direcions on the sheet accompanying the tower and then asked me to fax on my receipt on a pr
-
I deleted my Satellite L Vista
HelloI deleted my bear outside vista factory installed.How should I proceed? ?:| Thank you!
-
M3 short life battery for wake on LAN
Is there a possibility to turn off the "Wake on LAN" in the bios on the network. The Toshiba software tool, I believe that hwsetup is not installed on computers.
-
HP a6210 after format I have no internet
After format, I installed windows xp and I have no internet to find help right drivers.please
-
Fixed jammed paper but still cannot print from computer.
Original title: paper stuck; I fixed it. Paper is no longer blocked, but (computer) printer doesn't recognize not the jam is fixed and I can not print from computer. What should I do? I used MAILING for an envelope; It's stuck; I unjammed it. A corre