Dynamic activity naming
Hi
Is there a way to dynamiquely rename activities within a BPEL process ?
For example, when I use flowN w/dynamic partnerLinks, I'd like to rename my invokes and receives in order to reflect the name of the invoked services in each branch of the flow within the soa console flow diagram.
Dominique
Dominique,
I see your problem and it's a good one. But activity names are static and there is no way around that. That's okay because you are really only looking for something visual in the flow view, not to change the language. What would solve this is if we would render the flow view drawing to include some sort of user defined dynamic value. But what value? We'd have to create a tag that could be attached to any activity whose value could be generated at runtime and also rendered in the flow view drawing.....right?
Tell me how this fits with your request and if you want to change it at all. After all, when we submit this as a feature request, we might as well ask for what we want!
Heidi.
Similar Messages
-
Dynamic file naming with File/FTP adapter
Hi all,
I have a requirement for writing files with names of the files based on a customer ID.... a dynamic name based on a value retrieved from the customer DB.
I have already tried using the dynamic file naming suggestion in the bpel dev guide, it does not work. I followed the instructions, the process fails to compile and throws "part" and "undefined variables" errors etc.
Has anyone succesfully used file/ftp adapter to write files with dynamic file names (using a varibale), not %SEQ% or %datetime% formats?
Thanks,
HasanYou can create a header variable that will allow you to set the outbound file name inside the process. This variable is a message type. From the type chooser select:
Message Types
Partner Links
Outbound Partner Link
Outbound wsdl
Message Types
Imported WSDL
fileAdapterOutboundHeader.wsdl
OutboundHeader_msg
This variable will have a part filename.
Set this part to whatever you wish your file to be named.
Select the invoke to your outbound file/ftp partnerlink. Move to the adapters tab and select the header variable you created as the Input Header Variable. -
Dynamic file naming at Receiver
Hello Friends,
How to handle the dynamic file naming in XI at receiver side as file naming convention sequence to be incremented for every 1 hour...
my Client expecting to handle at mapping...How to do this...
Could any one give me the program if we need to do it in java...
and pls also give another approach if any
Setup dynamically ,>>naming convention sequence to be incremented for every 1 hour
You can set the file construction mode as "Add counter" in the receiver file adapter
Thanx
Aamir
Edited by: Aamir Suhail on Aug 15, 2008 7:57 AM -
Dynamic file naming for two or more files in same mappin
Hello,
I am working with Dynamic file naming on receiver files...
Here two files are coming as output files...
I am using JAva UDF to handle the two file name....
But one one file is formed and another is missing as its 505 file aleady existing error is coming in Receivr Communication channel monitoring...
How to name different dynamic names for the two differenet filesHi Sunil,
Go thru this blog:
The specified item was not found.
Use this Variable Substitution method as an alternative option:
http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean
OR
The specified item was not found.
Regards,
Vinod. -
Dynamic variables' naming from SendAndLoad
Hello,
Been chasing my tail for almost 2days now, I'm having
problems on how to load dynamically named variables and place it on
dynamically named movieclips. I'm loading variables from php/mysql
query thru sendAndLoad (no problem with that). The loaded variables
are names of swf files that i'm trying to load on dynamically
numbered movieclips. The problem is it just wont load. I've
searched the net for similar codes, but with no luck. I'm guessing
that my error is in getting the exact variable name to load.
Heylp...No problems, you're welcome.
I think the eval should do the same thing as what I had. I
can't remember, I don't tend to use eval in flash - don't really
know why. I think loadMovie also accepts a string argument (which I
assume it 'evals') for a target in which case it may also work
without the eval and just with ,"_root.my_movieclip" + i; (didn't
try it so don't know for sure).
Good luck with it. -
Error in User defined function for dynamic file naming
Hi,
While creating User Defined function with this following code for dynamic fieldname
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
which options should i select for cache Value, Context, Queue
for Augument , what name shd i mention.
Regards,
VarunHi Varun,
I guess I have answered a similar question just a few minutes before on very similar post from you. Just pasting the same here .................
Are you trying to access the ASMA values from the SOAP header of the XI message for the source file name?
First of all you need to Set the Sender File Adapter for Set ASMA and then file name. So it will work fine when you actually run the scenario end to end.
But in the mapping tool when you test the mapping - there is not message header updated with the actual source filename - and whenever you try to read the FileName attribute in the message header from the UDF - it cannot find the object and returns a NullPointerException.
I would suuggest for your mapping tool testing to be successful, have a check in the java code for null values,
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
If (ourSourceFileName != null)
Return ourSourceFileName;
Return "NoFileName.txt";
Let us know if this works.
Regards,
Suddha -
Dynamic file naming when downlaoding the file to target directory
Dear friend,
My requirement is in the Adapter type File, File Name has to be dynamically generated. (i.e., each time the file name will be different according to the input name from the IDoc field). Can someone help me in this regard ???
Thanks in advance,
Jose AugastineHi,
The dynamic filename generation concept is as follows.
In your filename field. just give a variable with % symbols. (eg: %file% ).
Now, under the option Variable Name Substitution, you can give how the value has to be created.
It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.
For the former, your give
message:interface_name ,etc
and for the payload part you give,
Payload: "your element root which u wanna acecss"
Just check this link out,
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
And read the contents under variable substitution and it will help you understand the concepts better.
If you have any clarifications, do get back,
Regards,
Bhavesh -
Problem: using Dynamic file naming in adapter
Hi
Wat i m doing is using dynamic file configuration as given in this link
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 and trying to get file name and content of the file.
I m getting file name in dynamic configuration in SXMB_MONI but payload is empty.Actually i have to pass this payload to BPM.Subodh,
I understand that using the filename you would like to do the validations, but, am not able to get the entire flow, inclduing your BPM flow.
If you give us the entire interface flow, it would be helpful to understand the problem better.
Just a quick note : Try to do the mapping that gets the filename outside the BPM if you do not get this inside the BPM.
Have not tried this, but I have seen a few posts which found that the dynamic parametrs were not accesible inside the BPM.
Regards,
Bhavesh -
Dynamic Variable Naming for Sound Object
Is it possible to dynamically name a variable? I'd like to
create a new Sound Object on the fly, so that I can use the
Sound.load() method multiple times. I would simply like to create
and name the variable and add a number to the end of the name
(i.e.; var "audio_1":Sound). I'm sure that this is possible.
However, I can't seem to get it figured out.This code worked great! However, how can I set a global
variable equal to the newly created Sound Object so that it is
available globally via a reuseable reference?
Here's an example of how I attempted to do this. Please note:
audioObject is a global variable that I am trying to use to
reference the new Sound Object in various places.
audioObjectCount is a global variable that I am using to set
or get the next number to use when dynamically creating the next
new Sound Object -
Dynamic File naming in Mail attachment
Hi experts,
I am doing a Mail to File scenario, in which at the sender side I have a mail with File attachments.We are using IMAP protocol and picking up from a URL.At the receiver end we have to provide a file which is the attachment from the incoming mail.
With the help of the module I have separated the body and the attachment and the file is created with the static name I provided in the File adapter
My requirement is to dynamically name the file based on the customer name.I am not configured the design part, as no mapping of the interfaces are required.
For some reason,I am not able to open the mail bodyin sxmb_moni,but can see the attached file.
Thanks,
Tusharthere is no standard way.
you will have to write a module to get this in place.
other ways are;
XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping - /people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping
Dynamic name in the mail attachment - pseudo "variable substitution" :
/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution -
Data Slice dynamic activation and deactivation for a set of users
Hi Experts,
We have requirement to manually enter the data into RTC using IP.
There are 2 sets of users --> Power Users and Normal Users.
We need to allow the normal users to enter the data only from 1st to 5 th working day of every month.
Power Users should have authorization to edit and enter the data at any time.
Can any one suggest how to set the dataslice using code.
Regards,
ShashiHi.
Please note that update of RSPLS_DS table do not affects at RUNTIME.
If you want to create dataslice that activated and deactivated within sequence run you should do the next:
1. Create exit variable that return you all working days EXCEPT 1 to 5 of each month.
2. Create dataslice in modeler on this characteristic with restriction by this exit variable.
3. This dataslice should be based on ABAP class as described [here|https://www.box.net/shared/zhirrvk859].
4. In mydataslice method enter following code (I assume you have any DSO with definition whether user is power user or not. Lets say DSO has next structure:
USER | Z_IS_POWER |
aaaa | NO
bbbb | YES
Enter the next code in mydataslice method:
SELECT Z_IS_POWER FROM YOURDSO INTO lv_POWER WHERE USER=sy-uname.
IF sy-subrc = 0. *This is SUPER USER. Allow locked data edition
e_noinput = rs_c_false.
ELSE. *This is regular user. Do not allo locked data edition
e_noinput = rs_c_true.
5. Create in modeler 2 planning sequences for activating and deactivation dataslice as described in document.
6. Each time you want to do something with locked data run first sequence for deactivation of dataslice. If super user will run it so dataslice will be deactivated, but if regular user - dataslice will lock the data.
Regards. -
Issue with Dynamic file Naming
Hello Experts,
I am doing a scenario where in for one incoming field we are using dynamic configuratiion UDF for getting the filename.Now I am able to get the filename correctly.Now the issue is for the result output file I do not need this field . For Ex : The incoming field has some value say ABC_XYZ which I use and then concatenate it with time and date stamp in the UDF and then send it to the output.
Now at the result I dont need this field ABC_XYZ. The aim was to use it to generate only the file name with ABC_XYZ_date_time.
Please guide on the same as to how this field can be eliminated.Is it possible to do so in content conversion in file adapter using some Ignore thing. Please guide. Hope I have cleared my doubt.Hi Amit,
You can create another segment with in the target message type and remove that in content conversion. You can use this blog as reference:
/people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12
Else you can use shabarish weblog and can come up with the filename in your mapping and store it in FileName and then put in your receiver comm. channel as FileName which should take care of your issue.
Regards,
---Satish -
Good day,
I have an SSIS package that uses .csv as a destination. The package is scheduled to run automatically. I would like to dynamically name the files by appending a date stamp. eg.
fileX_20140903_001
fileX_20140903_002
fileX_20140903_003
etc.
I have managed to add a date stamp. I have problems appending the values incrementally as the package runs. For example, for the first run of the day, append 001, for the second run of the same day, append 002, for the third run of the same day, append
003 and so on.
Please kindly assistHi,
Assuming you are setting DateTime stamp from Expression something like
"C:\\FolderName\\FileName" + (DT_STR,4,1252) DatePart("yyyy",getdate()) +
Right("0" + (DT_STR,4,1252) DatePart("m",getdate()),2) +
Right("0" + (DT_STR,4,1252) DatePart("d",getdate()),2)
Try using variable which will take care of file count.
In Expression Builder increment variable value by 1
@[User::FileCounter] = @[User::FileCounter]+1
and append it to your existing Expression like as below
"C:\\FolderName\\FileName" + (DT_STR,4,1252) DatePart("yyyy",getdate()) +
Right("0" + (DT_STR,4,1252) DatePart("m",getdate()),2) +
Right("0" + (DT_STR,4,1252) DatePart("d",getdate()),2) + "_"+ @[User::FileCounter]
Regards, -
Lookout Reports Dynamic File Naming - Date/time format
Looking for any ideas to format the file name of Lookout reports to yyyy-mm-dd-hh-mm-ss
I can get the decimal equivalent of date using a system function such as now(hourly_timer), but can't figure out how to set the display format for such an object into the file name output field of the report object.
Thanks,
EdHi Ed,
Do these have to be PDF files? Can they be HTML files? If HTML (or even BMP) is fine, here's one option:
1. Use the Report Object
2. Note that the generated file's name can be dynamic -- tie in the datetime expression here, for instance.
3. Make the following connection:
Report1.Display1 = Panel1.graphic
Where Panel1 is the panel you want to capture.
4. Use the Generate logical datamember of the Report Object to generate the HTML file. It will copy and paste (will link to, actually) the panel nicely into the HTML file. The actual panel screenshot is saved as graphic1.bmp in the same folder -- which by itself should suffice as a record. But then you would have to make the folder structure based on datetime, etc., to be able to distinguish the screenshots.
By the way, I fail to see why the Panel's title -- which is what gets sent as filename to the printer -- has to be static. It's not the Object name. There's no reason for it to be static.. unless I am missing something. See, we could easily change this if.....
Anyways, hope this gives you some options.
Regards,
-Khalid
Message Edited by Khalid on 11-02-2006 01:02 AM -
can you create a variable and name it dynamically? like:
for(var i:Number = 0; i<5; i++){
var ["v"+i]:Number = i;
so you could create unique variables on the fly?Yes, but you need to define the scope of the variables:
for(var i:Number = 0; i<5; i++){
this["v"+i]:Number = i;
Because this uses the array access operator (square
brackets), it needs an object instance, like 'this', '_root' or
whatever fits.
cheers,
blemmo
Maybe you are looking for
-
Ok, I want to use Safari as my browser, I am just that way. What is up with the Weekly Ad not opening up when using Safari? I like to use that little flash based ad where you can turn the pages of the actual ad and it just will not work with Safari.
-
Can a pdf have problems when created with multiple PDF versions?
In our everyday workflow, we have PDFs created from different versions. Our main files are created as PDF v1.5, but then we might import pages created from another software that is v1.3, then we might scan and add a page that is created as v1.6. Ha
-
Fill default value with SQL query or by an other way
Hello everyone, I use Jdeveloper 11g and Weblogic. when I click on create button, I would like fill id_employee field automatically with the current user. I think there is a possibility in default value but I don't know how. My query is: SELECT Emplo
-
Reconciling open GRPO documents with GL
Has anyone reports or methods to reconcile the value of open GRPO documents with the value in the general ledger GRNI account? I've always found the lack of a report a big limitation. The obvious problem is that the open GRPO documents might be Servi
-
MyBook World Edition NAS, how do I get it to work, Guide would be grateful
*+_Hello readers!_+* I have recently bought a new MBP and I have got a Mybook world Edition NAS which I used with my Windows Vista in the past, where I just plugged the network cable right into the PC and maped it as a network drive. On my MBP howeve