msiAddKeyVal(*Keyval, "row2col1", "384");
msiAddKeyVal(*Keyval, "row2col2", "9");
msiAssociateKeyValuePairsToObj(*Keyval,*Path,"-d");
Your paths (both inside your .r file and in load-metadata.txt) should be iRODS logical object paths, not the physical paths of files on disk. Once something is in iRODS you will almost always work with its logical path.
A
myTestRule {
# test-metaloadpipe.r
#Input parameter is:
# Path name of file containing metadata
# Format of file is
# C-collection-name |Attribute |Value |Units
# Path-name-for-file |Attribute |Value
#Example
# /lifelibZone/home/rwmoore/foo1 |Test |34
#Output parameter is:
# Status
*Path= "/$rodsZoneClient/home/$userNameClient/" ++ *Coll;
writeLine ("stdout", "*Path");
msiLoadMetadataFromDataObj(*Path,*Status);
writeLine("stdout", "*Status Loaded metadata from file *Path");
}
INPUT *Coll="Class-INLS624/rules/metapipe1"
OUTPUT ruleExecOut
Note that the micro-service msiLoadMetadataFromDataObj needs the path name to a file in the data grid. I constructed the path name using session variables for the zone name and my account name. The variable *Coll is the relative collection path to the file metapipe1 in my home data grid account. The file metapipe1 contains the metadata that will be loaded.
The file metapipe1 contents are:
/lifelibZone/home/rwmoore/Class-INLS624/rules/test |Last2 |1/20/2016
/lifelibZone/home/rwmoore/Class-INLS624/rules/test |Cr2 |blue
This adds the attribute “Last2” to the file /lifelibZone/home/rwmoore/Class-INLS624/rules/test in the data grid, with the value 1/20/2016 and a second attribute with the name “Cr2"
Reagan Moore
The plugin framework went through some changes between the 4.1.x to 4.2.x, the plugin will need to be ported. Can you point us at the source code?
Thanks,
------
Jason Coposky
Executive Director, iRODS Consortium
RENCI at the University of North Carolina at Chapel Hill
w: (919)445-9675
To unsubscribe from this group and stop receiving emails from it, send an email to irod-chat+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
"iRODS: the Integrated Rule-Oriented Data-management System; A community driven, open source, data grid software solution" https://www.irods.org
iROD-Chat: http://groups.google.com/group/iROD-Chat
---
You received this message because you are subscribed to the Google Groups "iRODS-Chat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to irod-chat+unsubscribe@googlegroups.com.
sudo rpm --import https://packages.irods.org/irods-signing-key.asc
wget -qO - https://packages.irods.org/renci-irods.yum.repo | sudo tee /etc/yum.repos.d/renci-irods.yum.repo
"sudo yum install irods-devel" worked. What is the next step?
Regards
Andrew
You received this message because you are subscribed to a topic in the Google Groups "iRODS-Chat" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/irod-chat/gZSB3Pzv8XM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to irod-chat+unsubscribe@googlegroups.com.