Invoke the BS of BPA Script and tries to display the result
Today I worked on some scripts of BPA in combination with commercial Services. The idea is simple. I call a Business Service that returns a list of Bill Segment details for a given ID of Bill I want hollow loop list in my script BPA to count the number of Segments of Bill and calculate an amount. The result that I want to display. To be clear, this isn't a requirement of real business, but just something I'm trying to get to work to learn more about this cool script :) stuffThis is the configuration I used for my experience.
BUSINESS SERVICE:
BusinessService: ZZ-billSegmentBill
Service name: CILBBLLP
< schema pageAction = 'read' >
< billId mapField = "BILL_ID" / >
< billSegments type = mapList "list" = "BILL_SEG" >
< bsegID mapField = "BSEG_ID" / >
< said mapField = "SA_ID" / >
< curAmount mapField = "CUR_AMT" / >
< / billSegments >
< / schema >
BPA SCRIPT:
Invocation option: user invoked
Data area: Business Service / ZZ-billSegmentBill / ZZ-billSegmentBill
Schema:
<>schema
< billSegmentCount / >
< sumBillSegmentAmount / >
< / schema >
Admission requirements: always eligible
STEPS TO FOLLOW:
Step 10: Label - start of Script
Step 20: Travel data
Type of field source: predefined value
Value of the source field: '148184849261' (<-a bill with 3 Segments of Bill)
Destination Type field: data area
Destination domain name: ZZ-billSegmentBill/billId
Step 30: Call BS
Group name: ZZ-billSegmentBill
Business service: ZZ-billSegmentBill
If successful, go to: 50
If error, go to: 40
Step 40: Label - ERROR call for Service to business
Step 50: Label - call Business Service SUCCESS
60 step: Edit data
change data
Move '0' to $BillSegmentCount;
Move '0' to $SumBillSegmentAmount;
for ($billSegments in "ZZ-billSegmentBill/billSegments")
pass '1 + $BillSegmentCount' to $BillSegmentCount.
move '$SumBillSegmentAmount + ZZ-billSegmentBill/billSegments/curAmount' to $SumBillSegmentAmount.
-end;
move '$BillSegmentCount' to 'parm/billSegmentCount ";
move '$SumBillSegmentAmount' to 'parm/sumBillSegmentAmount ";
end edit;
Step 70: Label - SUCCESS hollow closure Bill Segments
Not 80: Text displayed
Number of Segments of Bill: %=parm/billSegmentCount=% < br >
Add amounts in Segments of Bill: %=parm/sumBillSegmentAmount=%
OUTPUT WHEN EXECUTING THIS SCRIPT OF BPA:
Start of Script
SUCCESS citing BS
SUCCESS one hollow loop Bill Segments
Number of Segments of Bill: [null]
Add amounts in Bill's Segments: [null]
Apparently, the number of Segments of Bill and the amount I want to view is not available in text stage show since * [null] * is shown where I would expect 3 Segments of Bill and a $ 63.05. (Incidentally, this experience is made on CC & B 2.3 containing the demo data)
If I turn on Global Debug I see the XML code that is passed to the business function:
< ZZ-billSegmentBill >
< billId > 148184849261 < / billId >
< / ZZ-billSegmentBill >
which is filled as expected after the call like this:
< ZZ-billSegmentBill >
< billId > 148184849261 < / billId >
< billSegments >
< bsegID > 148184856248 < / bsegID >
< a > 1481848274 < / said >
< curAmount > 21,50 < / curAmount >
< / billSegments >
< billSegments >
< bsegID > 148184842336 < / bsegID >
< a > 1481848525 < / said >
< curAmount > 22.79 < / curAmount >
< / billSegments >
< billSegments >
< bsegID > 148184891745 < / bsegID >
< a > 1481848734 < / said >
< curAmount > 18.76 < / curAmount >
< / billSegments >
< / ZZ-billSegmentBill >
Unfortunately, the rest of the paper is not very clear to me. I expect to see than something related to 60 my script step BPA in which the number of Segments of Bill is counted and corresponds to the sum of the Bill Segments. I expect the record to populate the items in the schema of the BPA script itself. As an alternative, I tried to work with a separate data area to store the result of the County and the sum, but this results in the same number. Don't know what I'm missing here. Please enlighten me here where I'm going wrong.
It's because you reference the incorrect item in your stage of 50, it should be:
1 move '0' to $BillSegmentCount;
2 move '0.00' to $SumBillSegmentAmount;
3 for ($billSegments in "ZZ-billSegmentBill/billSegments")
4 move "1 + $BillSegmentCount" to $BillSegmentCount;
5 move "$SumBillSegmentAmount + $billSegments/curAmount" to $SumBillSegmentAmount;
6 end-for;
7 move "$BillSegmentCount" to "ZZ-billSegmentBillDataArea/billSegmentCount";
8 move "$SumBillSegmentAmount" to "ZZ-billSegmentBillDataArea/sumBillSegmentAmount";
Line 5, where you had referenced ZZ-billSegmentBill/billSegments/curAmount; will not change the value of this node-set element, since it is not part of the iteration, so you get 21.50 (1st BS) x 3 (lines) = 64.50.
Tags: Oracle
Similar Questions
-
An email from my address!
I received an email from my address in my junkbox subsequently, I deleted without opening and tried to block without result. Is what kind of scam or virus? How is it hotmail allows this weird deliveries?Hello
Answers is a peer group supported and unfortunately has no real influence on Hotmail.
HotMail has its own Forums, so you can ask your questions there.
Windows Live Solution Center - HotMail - HotMail Forums Solutions
http://windowslivehelp.com/Hotmail - Forums
http://windowslivehelp.com/forums.aspx?ProductID=1Hotmail - Solutions
http://windowslivehelp.com/solutions.aspx?ProductID=1How to contact Windows Live Hotmail Support
http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htmWindows Live Hotmail Top issues and Support information
http://support.Microsoft.com/kb/316659/en-usError message "your account has been locked" when trying to connect
http://windowslivehelp.com/thread.aspx?ThreadId=77be7d82-a0e9-49c7-b46d-040ec654a9e2Compromised account - access unauthorized account - how to recover your account
http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41Hotmail hacked? Take these steps
http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspx============================================================
Proceed to a very thorough check for malware and then change your password by e-mail.
It is possible for a person to send the email that 'seems' to be of your
account but that is not really - called "Spoofing." That means its 'Possible' emails
were not really you, although they may have your contact list. Have someone
who receives the e-mails to check the header to see where he is actually sent by and
NOT only the answer to the address.How to read the message headers
http://www.emailaddressmanager.com/tips/header.htmlWhat Email Headers can tell you about the origin of Spam
http://email.about.com/cs/spamgeneral/a/spam_headers.htmE-mail spoofing
http://en.Wikipedia.org/wiki/E-mail_spoofingE-mail spoofing and Phishing
http://www.mailsbroadcast.com/email.broadcast.FAQ/46.email.spoofing.htmUnderstanding E-mail Spoofing
http://www.windowsecurity.com/articles/email-spoofing.htmlFraudulent emails (false)
http://pages.eBay.com/education/spooftutorial/Google search - email Spoofing
http://www.Google.com/search?hl=en&EI=FB1nS9DiNo7CsQPNhKGdAw&SA=X&Oi=spell&resnum=0&CT=result&CD=1&ved=0CAgQBSgA&q=email+spoofing&spell=1=============================================
If you need search malware here's my recommendations - they will allow you to
scrutiny and the withdrawal without ending up with a load of spyware programs running
resident who can cause as many questions as the malware and may be more difficult to detect as the
cause.No one program cannot be used to detect and remove any malware. Added that often easy
to detect malicious software often comes with a much harder to detect and remove the payload. Then
its best to be thorough than paying the high price later now too. Check with them to one
extreme overkill point and then run the cleaning only when you are sure that the system is clean.It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run
the regular windows when you can.Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone.
(If Rootkits run UnHackMe)Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
Malwarebytes - free
http://www.Malwarebytes.org/products/malwarebytes_freeRun the malware removal tool from Microsoft
Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.
You should get this tool and its updates via Windows updates - if necessary, you can
Download it here.Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
(Then run MRT as shown above.)Microsoft Malicious - 32-bit removal tool
http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=enMicrosoft Malicious removal tool - 64 bit
http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=enalso install Prevx to be sure that it is all gone.
Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
Prevx - Home - free - small, fast, exceptional CLOUD protection, working with others
security programs. It is a single scanner, VERY EFFICIENT, if it finds something to come back
here or use Google to see how to remove.
http://www.prevx.com/ <-->-->
http://info.prevx.com/downloadcsi.asp <-->-->Choice of PCmag editor - Prevx-
http://www.PCMag.com/Article2/0, 2817,2346862,00.aspTry the demo version of Hitman Pro:
Hitman Pro is a second scanner reviews, designed to save your computer from malicious software
(viruses, Trojans, rootkits, etc.). who infected your computer despite safe
what you have done (such as antivirus, firewall, etc.).
http://www.SurfRight.nl/en/hitmanpro--------------------------------------------------------
If necessary here are some free online scanners to help the
http://www.eset.com/onlinescan/
-----------------------------------
Original version is now replaced by the Microsoft Safety Scanner
http://OneCare.live.com/site/en-us/default.htmMicrosoft safety scanner
http://www.Microsoft.com/security/scanner/en-us/default.aspx----------------------------------
http://www.Kaspersky.com/virusscanner
Other tests free online
http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1--------------------------------------------------------
Also follow these steps for the General corruption of cleaning and repair/replace damaged/missing
system files.Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup
Start - type this into the search-> find COMMAND to top box and RIGHT CLICK-
RUN AS ADMINEnter this at the command prompt - sfc/scannow
How to analyze the log file entries that the Microsoft Windows Resource Checker
(SFC.exe) program generates in Windows Vista cbs.log
http://support.Microsoft.com/kb/928228Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.
How to run the check disk at startup in Vista
http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html-----------------------------------------------------------------------
If we find Rootkits use this thread and other suggestions. (Run UnHackMe)
I hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">->
-
I downloaded Photoshop CS2 and tried to install it on Mac. I have a license and heard its possible still install Photoshop CS2 for Mac. I'm on Mac 10.9.4. On the installation of scripts, I received an error - helps a lot?
heard it can still install Photoshop CS2 for Mac.
Only on Mac under 10.6 or earlier.
CS2 will not install on modern Macs like yours with 10.9.4 running Intel processors.
CS2 is a PowerPC software designed to run on PowerPC processors. It is not compatible with the Intel processors (without the Rosetta translator).
The latest version of Mac OS X can run CS2 (with Rosetta) was OS X 10.6.
-
Hello!
I work with the Director 12, Windows 7. A fatal error occurred during my attempt to chance the script police. Now this fatal error occurred whenever I start the Director. I shut down the system and tried again, even failure.
What can I do?
Save the relevant keys, then search your registry at HKCU\Software\Adobe\Director\12\Script
If this does not help, save the entire branch and try to delete it
-
My computer with two hard drives and 2 starting systems has the car crash in the solid state. When I got the new drive and tried to restore from time capsule, I lost some data. How can I see what backups are on the time capsule? My laptop is also saved to the time capsule. Everything is in 'Data' when I look through the Airport utility. I think that the information that I've lost are still there since I was a Capsule 3 to.
Time Machine backup to a sparsebundle.
The sparsebundle will use the share name of computer. So, it should be obvious who is your Macbook and that is your Macpro.
Open the sparsebundle in Finder and keep open the subfolders until you get to the backup of each separate hard drive...
You has of course set the exclusion in Time Machine?
By default, Time Machine will exclude your second drive unless you have included it. Did you?
Once you get to this level during the backup, you can do a full restore manually whenever you want.
-
Updating FF 24/25, my browser hang, I uninstall the browser and tried to reinstall, but extract the Setup file and blocks until pls give a solution
I solved the problem, installed the installer from mode Windows safe.
-
When I try to install firefox again once it is said, the computer must be restarted to complete the uninstall of the previous version, but when restarted and tried again, it says the same thing, what do I do?
Please try this: copy the files formhistory.sqlite (or formhistory) and places.sqlite (or places) if they exist and remove the entire Mozilla folder in %APPDATA%\protector.exe and also the Firefox folder in Program Files. Please see.
-
using the iPhone 6 s last updated - when trying to search using the result of Safari a padlock in front of him and nothing does not open in the list below!
Please wait until a fix is available at Apple.
Best.
-
I just installed ios 9 today and tried to set up "Hey Siri" on my iPhone 6 Plus. I have the phone on and said "Hey Siri" so many times that I am blue in the face. He just telling me "Sorry doesn't quite have that." Try again. ' I also tried to reset the settings of the phone under the "Reset" option and again without success. Everyone knows the problem?
Not having is not the issue here. Have you tried to ask a question after Hey Siri? Should really wait that long either.
-
Is there a way to change the font size in the comments to a readable/superior police box? I went to Keynote > Preferences > General and tried making it bigger, and it does not work. Keynote 6.6.1 thanks.
The fonts themselves, or one of the font attributes cannot be changed; (size, color, tabs or alignment)
Although it would be very helpful to change the font size, in normal circumstances, this should not be a problem; comments are designed as a personal note by the designer and should only ever be seen by them.
-
problem to open and cancel a Subvi by invoking the node
Hello
I have a Subvi, which is runing in a while loop and it's calculation that finished in a variable time. So I decided to add the abort function to invoke the node. This works perfectly when the Subvi is running by its own but gives an error.
1000 error to reference open VI
Possible reasons: LabVIEW: The VI isn't in a State compatible with this operation.I found that there is a solution for this in the following link.
http://digital.NI.com/public.nsf/allkb/790AC75B07D971ED86256C53007BDCE9
So I added the Vi run invoke node in the main vi and abort VI invoke node in the Subvi
as in the following excerpt, but I still get the same error. Think you I'm missing?
Eureka. I found it.
It was very simple.
I just add the stop simulation in the simulation loop if time exceeds certain limits.
Anyway, thank you guys for helping me.
See you soon,.
Zied
-
Tried to print thick paper / cartridge paper through the front power and the result is stained with weird colors. Printing through the standard power supply is perfect. Thanks in advance for your help.
Standigay
Tried to print thick paper / cartridge paper through the front power and the result is stained with weird colors. Printing through the standard power supply is perfect. Thanks in advance for your help.
Standigay
Hello
This looks like a good question for the support of Epson.
Help and Support - Epson America, Inc..:
http://www.Epson.com/cgi-bin/store/help/help.jsp?BV_UseBVCookie=Yes&category=productsConcerning
-
Original title: help with XP
Hello. Lost my son specifications accessories so I can not access tools etc as a result of this system by trying to connect to the internet, it is locked with the 404 error is returned. I checked and seems to be something that is called the prevention of execution of data, or something similar. I suspect that a virus may have corrupted windows. is there a site that I can connect to that will analyze or fix the erors with windows. I know a little about computers, but the easier the better solution to any who no matter what solutons to one of these problems. I tried turning of DEP, but it does not work. the indices or help gratefully received. Thank you
Hello
· What is the service pack installed?
· What anti-virus program do you use?
Method 1:
I suggest you to download and run the latest Microsoft security on your computer Scanner and check if it helps:
http://www.Microsoft.com/security/scanner/en-us/default.aspx
Note: the data files that are infected must be cleaned only by removing the file completely, which means there is a risk of data loss.
Method 2:
I suggest you run the SFC (System File Checker) and check if it helps.
Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)
http://support.Microsoft.com/kb/310747
Method 3:
Error 404 occurs when Internet Explorer is able to connect to the website, but the webpage cannot be found. This error is sometimes caused because the webpage is temporarily unavailable or that the Web page has been removed.
I suggest that you reset the internet settings explore by default and check if it helps.
For more information, see the article.
How to reset Internet Explorer settings
http://support.Microsoft.com/kb/923737
Important: Reset Internet explore its default configuration. This step will disable also any add-ons, plug-ins or toolbars that are installed. Although this solution is fast, it also means that, if you want to use one of these modules in the future, they must be reinstalled.
Method 4:
I suggest you create another user on the computer and verify the results: how to create and configure user accounts in Windows XP: http://support.microsoft.com/kb/279783
If the problem does not occur in the new user, and then follow the steps from the link below: how to copy data from a corrupted to a new profile in Windows XP user profile: http://support.microsoft.com/kb/811151
-
When I run the Setup in the program screen flash backs and trying to change back, but then return to the windows form.
* original title - back program will not be run. *
How old is this program and what is his name? If you give us the name of the program someone read here who have experience with the peculiarities of the program might be able to provide more help.
Open a command prompt, and then try running Setup from the command prompt. To start a command prompt, type CMD in the box run from the start menu and press or click OK
. At the command prompt, you can use the CD command to navigate to the CD, or you can run the Setup program by using the full path to the Setup program, for example: x:\Install.exe
where x is the CD drive letter.
John
-
Black toolbar of file - readable when it is idle
reset the themes and tried to personallize nothing changed still black
has suggested that it could be an image used as a background but can not go by default
His IE8 not perform at all just regular and other filesHey Phaffer,
Try the fix provided by MVP Kelly Theriot which should reset the default toolbar background. You can download the hotfix directly from:
http://www.kellys-Korner-XP.com/regs_edits/toolbarbackgroundclear.reg
or
Reach:
http://www.kellys-Korner-XP.com/xp_tweaks.htm
Scroll to number 216 (left column)
Hope that helps, I look forward to hearing from you.
Steven
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think
Maybe you are looking for
-
Satellite Pro L300 - PCMCIA adapter
Hello. I use a Toshiba laptop L300 downgraded from Vista to XP Pro. It is equipped with a card reader Express. I need to be able to use a PCMCIA drive to burn software on flash cards. I had 2 X Express Card to PCMCIA online converters, but they don't
-
Problems starting my MacBook Air (mid-2012) OSX 10.11.2
When you start the MacBook system, I get the Apple with the bar Logo screen, after a few seconds, the screen goes black with the bar in the left corner of the screen a few seconds and the screen goes black and stay like that. I am able to boot in saf
-
Bluetooth using RFCOMM Sockets
Hello I'm working on a project that requires LabVIEW communicate with a raspberry Bluetooth Pi. The Pi is running Python and using PyBluez to the side of Bluetooth. Preference LabVIEW will connect to IP using a Socket Bluetooth on RFCOMM, however I c
-
When I plug the headphone in front back, it shows me all the time "line in"
.. and manually I put on headphones and then I hear of helmet, after computer to start again I have to do the same thing and here again I can hear the voice of helmet, I have separate headset, mic is good and shows jack rear panel but helmet appears
-
Stuck in drained batery problem blackBerry smartphones
Oh boy - I don't know what happened. My blkberry ran too low - got the last warning. Just as I inserted the adapter charger battery empty message stop Pocket came. The problem is its stuck on the screen. The blberry never * beep * face-down. I'm not